// PR c++/51908 // { dg-do compile { target c++11 } } struct foo1 { template operator decltype(static_cast(nullptr)) () const; }; struct foo2 { template operator decltype(static_cast(nullptr)) () const; }; struct foo3 { template operator decltype(static_cast(nullptr)) () const; }; struct foo4 { template operator decltype(static_cast(nullptr)) () const; };