Open Quuxplusone opened 10 years ago
Attached foo.C
(259 bytes, application/octet-stream): Testcase
Clang is correct here.
Your declaration disambiguates as a function declaration, not as a variable declaration. The disambiguation process doesn't take into account whether function parameter declarations are qualified or unqualified (because that is governed by semantic rules, not by the grammar).
That said, we should diagnose this better, especially since other implementations accept it. I'll also raise this with the C++ CWG and see if we can get a language change to accept this.
foo.C
(259 bytes, application/octet-stream)