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

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Hi

Bumped into this clang++ failure:

sas...@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.
sas...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to