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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1352356

Title:
   [C++0x] Internal compiler error when using initializer lists

To manage notifications about this bug go to:
https://bugs.launchpad.net/dolfin/+bug/1352356/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to