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

           Summary: Clang fails to compile when including <iomanip>
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


I compiled Clang from SVN (tried revision 102493 and 103172) on ArchLinux using
this: http://aur.archlinux.org/packages.php?ID=20222

Compiling my project failed and I identified the problem. Here is the simplest
file where the problem arise:
#include <iomanip>
//#include <iostream>

int main()
{
   //std::cout << "Hello, world!\n";
}

Compiling gives:
clang++ test.cpp -o test                                                        
In file included from test.cpp:1:
/usr/include/c++/4.5.0/iomanip:63:12: error: expected expression
  { return { __mask }; }
           ^
/usr/include/c++/4.5.0/iomanip:93:12: error: expected expression                
  { return { __mask }; }
           ^
/usr/include/c++/4.5.0/iomanip:124:12: error: expected expression               
  { return { __base }; }
           ^
/usr/include/c++/4.5.0/iomanip:162:14: error: expected expression               
    { return { __c }; }
             ^
/usr/include/c++/4.5.0/iomanip:192:12: error: expected expression               
  { return { __n }; }
           ^
/usr/include/c++/4.5.0/iomanip:222:12: error: expected expression               
  { return { __n }; }
           ^
6 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to