This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53057] New: [c++0x] ICE on construction off of initializer list with overloads for constructor


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]