This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50478] New: Internal compiler error when using initializer lists
- From: "bitti at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Sep 2011 06:39:46 +0000
- Subject: [Bug c++/50478] New: Internal compiler error when using initializer lists
- Auto-submitted: auto-generated
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.