[LLVMbugs] [Bug 12236] New: Clang rejects initializer list used as default argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 10 19:07:45 PST 2012


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

             Bug #: 12236
           Summary: Clang rejects initializer list used as default
                    argument
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat test.cc
void foo(int x = {}) {
}
$ clang++ -std=c++11 -c test.cc
test.cc:1:18: error: expected expression
void foo(int x = {}) {
                 ^
1 error generated.


"int x = int{}" works fine.

-- 
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