Commit 37b9a3bd by Jason Merrill Committed by Jason Merrill

re PR c++/52743 (g++-4.7.0 seg faults on overload functions.)

	PR c++/52743
	* call.c (compare_ics): Handle ck_aggr like ck_list.

From-SVN: r185963
parent 711417cd
2012-03-29 Jason Merrill <jason@redhat.com>
PR c++/52743
* call.c (compare_ics): Handle ck_aggr like ck_list.
2012-03-28 Jason Merrill <jason@redhat.com> 2012-03-28 Jason Merrill <jason@redhat.com>
PR c++/52746 PR c++/52746
......
...@@ -7620,7 +7620,7 @@ compare_ics (conversion *ics1, conversion *ics2) ...@@ -7620,7 +7620,7 @@ compare_ics (conversion *ics1, conversion *ics2)
Specifically, we need to do the reference binding comparison at the Specifically, we need to do the reference binding comparison at the
end of this function. */ end of this function. */
if (ics1->user_conv_p || ics1->kind == ck_list) if (ics1->user_conv_p || ics1->kind == ck_list || ics1->kind == ck_aggr)
{ {
conversion *t1; conversion *t1;
conversion *t2; conversion *t2;
......
2012-03-29 Jason Merrill <jason@redhat.com>
PR c++/52743
* g++.dg/cpp0x/initlist-array3.C: New.
2012-03-28 Jason Merrill <jason@redhat.com> 2012-03-28 Jason Merrill <jason@redhat.com>
PR c++/52746 PR c++/52746
......
// PR c++/52743
// { dg-do compile { target c++11 } }
void composite (int const (&) [2]);
void composite (int const (&) [3]);
int main ()
{
composite({0,1}); // { dg-error "ambiguous" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment