Skip to content

clang accepts invalid code that with trailing comma #125225

@hokein

Description

@hokein

Clang doesn't diagnose the following invalid code (with the trailing comma), it treats as valid code:

void func(int);
void k() {
  func(1, );
}

This is a regression caused by #114684.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions