https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109018
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > template<class T> > decltype(g(T())) h() > return g(T());} Typo in my example missing {