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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 21 14:48:09 PDT 2012


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-08-21 16:48:09 CDT ---
This is a defect in C++ itself:


Clang matches the behavior of all other C++ compilers here; this is not a bug
(though depending on the way in which that issue is resolved, we may need to
revisit this).

The workaround is to add parentheses around the default argument expression.

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