Created on 2015-06-19.00:00:00 last changed 4 days ago
Additional notes (May, 2024)
Issue 2876 introduced a framework to distinguish the parsing. Its resolution was extended to also resolve this issue.
[Accepted as a DR at the June, 2024 meeting.]
The following fragment,
int f() {};
is syntactically ambiguous. It could be either a function-definition followed by an empty-declaration, or it could be a simple-declaration whose init-declarator has the brace-or-equal-initializer {}. The same is true of a variable declaration
int a {};
since function-definition simply uses the term declarator in its production.
History | |||
---|---|---|---|
Date | User | Action | Args |
2024-12-17 09:54:02 | admin | set | status: dr -> drwp |
2024-07-20 13:52:34 | admin | set | status: ready -> dr |
2024-06-25 12:54:46 | admin | set | status: tentatively ready -> ready |
2024-05-31 21:07:31 | admin | set | status: drafting -> tentatively ready |
2024-05-24 15:00:24 | admin | set | messages: + msg7707 |
2015-06-19 00:00:00 | admin | create |