https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87781
Bug ID: 87781 Summary: template disambiguator not after `::`, `.` or `->` is incorrectly accepted in an elaborated-type-specifier Product: gcc Version: unknown Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ensadc at mailnesia dot com Target Milestone: --- https://wandbox.org/permlink/97lV1nw6gMGSDOct ---- template<class> class A; class template A<int> *p; ---- GCC allows this with no warning or error. Both clang and MSVC reject this.