================ @@ -628,10 +628,12 @@ namespace cwg141 { // cwg141: 3.1 // expected-error@-1 {{use 'template' keyword to treat 'f' as a dependent template name}} } void h() { - (void)t.S<int>::n; // ok + (void)t.S<int>::n; ---------------- sdkrystian wrote:
@Endilll `t` is dependent, so we do not consider `S` to be a template name per CWG1835. The results of unqualified lookup are only used to determine whether a name is that of a template if the name isn't dependent (unless the lookup context is the current instantiation). https://github.com/llvm/llvm-project/pull/100425 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits