This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53057] New: [c++0x] ICE on construction off of initializer list with overloads for constructor
- From: "cmaloney at tagged dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Apr 2012 07:04:44 +0000
- Subject: [Bug c++/53057] New: [c++0x] ICE on construction off of initializer list with overloads for constructor
- Auto-submitted: auto-generated
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