[LLVMbugs] [Bug 8738] New: Failure to type infer literal integer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 4 23:03:46 PST 2010


           Summary: Failure to type infer literal integer
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sashan at zenskg.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Bumped into this clang++ failure:

sashan at cyclops build  $ clang++ -c -std=c++0x ~/code/cpp/auto.cpp 
/home/sashan/code/cpp/auto.cpp:1:6: error: cannot initialize a variable of type
'auto' with an rvalue of type 'int'
auto x = 1;
     ^   ~
1 error generated.
sashan at cyclops build  1 $

Where auto.cpp is:

auto x = 1;

This compiles with g++ -c -std=c++0x.

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