[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
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=7493
           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"
        .text
        .p2align 4,,15
.globl _Z3fooi
        .type   _Z3fooi, @function
_Z3fooi:
.LFB0:
        .cfi_startproc
        movl    %edi, %eax
        ret
        .cfi_endproc
.LFE0:
        .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