https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70417
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- > Is there something new in the C++ standards, or is this a g++ regression? Since dy is a dependent template name you have to write return y.template dy<X>(); So I think this is a case of earlier versions of gcc wrongly accepting this code, and gcc 6 correctly rejecting it.