https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72761
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to liwei from comment #0) > // Code that cannot compile > template <typename T> > using Check = typename TCur::Layer template <T>; This is not valid C++, maybe you meant: using Check = typename TCur::template Layer<T>;