Skip to content

Implement generalized initializer lists #7441

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 7069
Resolution FIXED
Resolved on Mar 04, 2012 09:41
Version trunk
OS Linux
Depends On llvm/llvm-bugzilla-archive#12178
Blocks llvm/llvm-bugzilla-archive#8390
Reporter LLVM Bugzilla Contributor
CC @asl,@DougGregor

Extended Description

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
//#include

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++11

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions