[LLVMbugs] [Bug 7493] New: clang++ rejects extended initializer list.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 25 10:44:50 PDT 2010


           Summary: clang++ rejects extended initializer list.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pluto at agmk.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

$ cat t.cpp
struct S { int i_; };
S foo( int i )
    return { i };

$ g++ t.cpp -Wall -S -std=c++0x -O2 -o -
        .file   "t.cpp"
        .p2align 4,,15
.globl _Z3fooi
        .type   _Z3fooi, @function
        movl    %edi, %eax
        .size   _Z3fooi, .-_Z3fooi
        .ident  "GCC: (PLD-Linux) 4.5.0 20100615 (release)"
        .section        .note.GNU-stack,"", at progbits

$ clang++ t.cpp -Wall -S -std=c++0x -O2 -o -
t.cpp:4:12: error: expected expression
    return { i };
1 error generated.

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