public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50478] New: Internal compiler error when using initializer lists
@ 2011-09-22  7:19 bitti at iki dot fi
  2011-09-22  7:29 ` [Bug c++/50478] " daniel.kruegler at googlemail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bitti at iki dot fi @ 2011-09-22  7:19 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-10-10  9:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22  7:19 [Bug c++/50478] New: Internal compiler error when using initializer lists bitti at iki dot fi
2011-09-22  7:29 ` [Bug c++/50478] " daniel.kruegler at googlemail dot com
2011-09-22  9:40 ` [Bug c++/50478] [C++0x] " paolo.carlini at oracle dot com
2011-09-22  9:56 ` paolo.carlini at oracle dot com
2011-12-21 11:39 ` paolo.carlini at oracle dot com
2011-12-21 12:28 ` paolo.carlini at oracle dot com
2011-12-21 12:56 ` paolo.carlini at oracle dot com
2012-04-18 10:37 ` paolo.carlini at oracle dot com
2012-10-10  9:01 ` paolo.carlini at oracle dot com
2012-10-10  9:12 ` paolo at gcc dot gnu.org
2012-10-10  9:13 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).