[Bug c++/50478] New: Internal compiler error when using initializer lists
bitti at iki dot fi
gcc-bugzilla@gcc.gnu.org
Thu Sep 22 07:19:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478
Bug #: 50478
Summary: Internal compiler error when using initializer lists
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: bitti@iki.fi
The following short program shows the problem:
#include <set>
#include <string>
int main() {
std::set<std::string> s;
s.insert( {"abc", "def", "hij"} ); // This line is the problem
}
> g++ -std=c++0x test.cc
test.cc: In function ‘int main()’:
test.cc:6:37: internal compiler error: in joust, at cp/call.c:7646
If I compile with -pedantic, the program compiles fine.
More information about the Gcc-bugs
mailing list