2 // { dg-do compile { target c++11 } }
6 void display_type() const { }
9 typedef Type const ConstType;
11 struct ConvertibleToType {
12 operator Type&() { return *reinterpret_cast<Type*>(this); }
17 // Both lines should call the const variant.
18 (true ? ConvertibleToType() : ConstType()).display_type();
19 decltype((true ? ConvertibleToType() : ConstType()))().display_type();