[Bug c++/53057] New: [c++0x] ICE on construction off of initializer list with overloads for constructor
cmaloney at tagged dot com
gcc-bugzilla@gcc.gnu.org
Sat Apr 21 07:05:00 GMT 2012
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
More information about the Gcc-bugs
mailing list