================
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
+
+void foo1() { (auto()->bar::); }
+// expected-error@-1 {{use of undeclared identifier 'bar'}}
+// expected-error@-2 {{initializer for functional-style cast to 'auto' is
empty}}
+// expected-error@-3 {{expected unqualified-id}}
----------------
ojhunt wrote:
I was wondering why the test would be correct with this change, but it's
actually not - `bar` is not an undeclared identifier here, the actual error
should be saying we expect an unqualified id I think.
https://github.com/llvm/llvm-project/pull/221209
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits