* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr81167.C
blobd0c9d233c4970bcf6997bd6646fbd4f1ad4abfeb
1 // PR c++/81167
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wconversion" }
5 struct bar;
7 struct foo
9   foo () {}
10   foo (const bar &) {}
13 struct bar
15   operator foo () && { return foo (); }
18 void test ()
20   foo f = bar ();
21 // { dg-warning "choosing 'bar::operator foo\\(\\) &&' over 'foo::foo\\(const bar&\\)'" "" { target *-*-* } .-1 }
22 // { dg-warning "for conversion from 'bar' to 'foo'" "" { target *-*-* } .-2 }
23 // { dg-message "because conversion sequence for the argument is better" "" { target *-*-* } .-3 }