[LLVMbugs] [Bug 7069] New: Clang fails to compile when including <iomanip>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 6 06:09:16 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: nbigaouette at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list