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.
The following short program shows the problem:
#include <set>
#include <string>
int main() { :set<std: :string> s;
std:
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.