[LLVMbugs] [Bug 8591] New: Initializer lists not supported

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 11 20:20:45 PST 2010


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

           Summary: Initializer lists not supported
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


int foo(int a) {
  return { a };
}

With g++:

test.cc:2:3: warning: extended initializer lists only available with -std=c++0x
or -std=gnu++0x

With clang:

test.cc:2:10: error: expected expression
  return { a };

I wonder how hard it is to implement at least the very basic cases.

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