[LLVMbugs] [Bug 10764] New: cp00x feature auto

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 25 21:00:08 PDT 2011


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

           Summary: cp00x feature auto
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7143)
 --> (http://llvm.org/bugs/attachment.cgi?id=7143)
auto

~/build_llvm/install/bin/clang++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:10:7: error: type
      name does not allow storage class to be specified
  if (auto i = 42L)
      ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:10:12: error: C++
      requires a type specifier for all declarations
  if (auto i = 42L)
      ~~~~ ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:16:10: error: type
      name does not allow storage class to be specified
  while (auto i = 1)
         ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:16:15: error: C++
      requires a type specifier for all declarations
  while (auto i = 1)
         ~~~~ ^
4 errors 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