https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91768
Bug ID: 91768 Summary: gcc try to resolve member of template parameter too soon Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- the following code is valid according to clang, msvc and icc but not gcc: template<typename T> struct A { int test(T* Ptr) { return Ptr->type::test(); } }; example with use: https://godbolt.org/z/9XYQ4k