================
@@ -0,0 +1,32 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
+
+namespace GH49093 {
+ class B {
+ public:
+ static int a() { return 0; } // expected-note {{member is declared here}}
+ decltype(a< 0 >(0)) test; // expected-error {{member 'a' used before
its declaration}}
----------------
erichkeane wrote:
I think it generally DOES make sense to try the lookup? We shouldn't crash of
course, but failing to do the lookup pretending it is NOT a template makes a
lot of sense to me.
https://github.com/llvm/llvm-project/pull/107786
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits