public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53057] New: [c++0x] ICE on construction off of initializer list with overloads for constructor
@ 2012-04-21  7:05 cmaloney at tagged dot com
  2012-04-21  7:59 ` [Bug c++/53057] " marc.glisse at normalesup dot org
  2012-04-23 15:46 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: cmaloney at tagged dot com @ 2012-04-21  7:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53057

             Bug #: 53057
           Summary: [c++0x] ICE on construction off of initializer list
                    with overloads for constructor
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: cmaloney@tagged.com


The following code causes GCC 4.7.0 to fail with the message "internal compiler
error: in joust, at cp/call.c:8009"

#include <string>
#include <vector>

using namespace std;

struct TFoo {
  TFoo(const vector<string> &vs);
  TFoo(const string &s);
};

TFoo foo({"1", "2", "3"});

$ g++ overload_ice.cc -std=c++0x
overload_ice.cc:11:25: internal compiler error: in joust, at cp/call.c:8009


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

end of thread, other threads:[~2012-04-23 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-21  7:05 [Bug c++/53057] New: [c++0x] ICE on construction off of initializer list with overloads for constructor cmaloney at tagged dot com
2012-04-21  7:59 ` [Bug c++/53057] " marc.glisse at normalesup dot org
2012-04-23 15:46 ` 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).