https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78623
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- clang agrees with GCC: > clang++ t.C -S -std=c++11 t.C:15:20: error: use 'template' keyword to treat 'foo' as a dependent template name result.foo<void>(); // (*) ^ template 1 error generated.