* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype25.C
blobe57376f9b467cd70c7b4731719137906e90f5ee6
1 // PR c++/47851
2 // { dg-do compile { target c++11 } }
4 struct Type {
5   void display_type();
6   void display_type() const { }
7 };
9 typedef Type const ConstType;
11 struct ConvertibleToType {
12     operator Type&() { return *reinterpret_cast<Type*>(this); }
15 int main ()
17   // Both lines should call the const variant.
18   (true ? ConvertibleToType() : ConstType()).display_type();
19   decltype((true ? ConvertibleToType() : ConstType()))().display_type();