[C++0x] Internal compiler error when using initializer lists
Bug #1352356 reported by
Jan Blechta
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
FEniCS Project |
New
|
Undecided
|
Unassigned | ||
gcc |
Fix Released
|
Medium
|
|||
gcc-4.6 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
From https:/
Matti Rintala 2011-09-22 06:39:46 UTC
The following short program shows the problem:
#include <set>
#include <string>
int main() {
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.
affects: | dolfin → fenics |
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
tags: | added: precise |
To post a comment you must log in.
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.