[Bug 1352356] [NEW] [C++0x] Internal compiler error when using initializer lists
Jan Blechta
blechta at karlin.mff.cuni.cz
Mon Aug 4 13:35:01 UTC 2014
Public bug reported:
>From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478
Matti Rintala 2011-09-22 06:39:46 UTC
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.
** Affects: dolfin
Importance: Undecided
Status: New
** Affects: gcc
Importance: Unknown
Status: Unknown
** Affects: gcc-4.6 (Ubuntu)
Importance: Undecided
Status: New
** Bug watch added: GCC Bugzilla #50478
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478
** Also affects: gcc via
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478
Importance: Unknown
Status: Unknown
** Also affects: dolfin
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1352356
Title:
[C++0x] Internal compiler error when using initializer lists
Status in DOLFIN:
New
Status in The GNU Compiler Collection:
Unknown
Status in “gcc-4.6” package in Ubuntu:
New
Bug description:
From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478
Matti Rintala 2011-09-22 06:39:46 UTC
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/dolfin/+bug/1352356/+subscriptions
More information about the foundations-bugs
mailing list