[clang] [clang] Fix possible nullptr deref in BuildCXXNestedNameSpecifier (PR #166995)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 7 13:49:12 PST 2025
================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only %s -verify
+namespace a {
+template <class b>
+void c() {
+ ((::c::)); // expected-error {{expected unqualified-id}}
----------------
ilovepi wrote:
i've updated the early exit by duplicating the diagnostic. I didn't see an obvious way to avoid doing that. Happy to amend if this still isn't quite right.
https://github.com/llvm/llvm-project/pull/166995
More information about the cfe-commits
mailing list