[clang] [Clang] Correct the DeclRefExpr's Type after the initializer gets instantiated (PR #133212)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 27 10:50:38 PDT 2025


================
@@ -467,3 +467,29 @@ namespace VexingParse {
   template <typename> int var; // expected-note {{declared here}}
   int x(var); // expected-error {{use of variable template 'var' requires template arguments}}
 }
+
+#ifndef PRECXX11
+
+namespace GH79750 {
----------------
shafik wrote:

I am assuming you checked by hand that https://github.com/llvm/llvm-project/issues/133047 passes now? It might have been helpful to ask for a reduction to ensure we had fuller test coverage.

https://github.com/llvm/llvm-project/pull/133212


More information about the cfe-commits mailing list