[LLVMbugs] [Bug 13657] comma in default argument confuses parser

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 8 17:34:40 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13657

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #3 from Douglas Gregor <dgregor at apple.com> 2012-10-08 19:34:40 CDT ---
(In reply to comment #2)
> I'd like the status of "RESOLVED INVALID" to be reconsidered.
> 
> The test case is accepted by g++ v4.4.5 and v4.7.2, the Comeau Test Drive page,
> MSVC++ 2010, and the HP VMS C++ compiler (which uses the EDG front end, I
> believe).  I haven't found any compiler other than clang that rejects it.
> 
> I'm not clear on what the issue linked to in Comment #2 says on this matter. 
> There is a proposed addition that would make the testcase ill-formed but I
> can't see that it was ever accepted into the standard.  Additionally, the last
> line says "a template-id will only be recognized if there is a preceding
> declaration of a template."  Since in this case there *is* a preceding
> declaration it would seem to me that it should be accepted.

The "Suggested Resolution" very clearly makes this code ill-formed, but later
discussions have muddied the waters considerably. Re-opening until the CWG gets
its act together.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list