[clang] [clang] Fix crash in DiagnoseMissingSemiAfterTagDefinition for annot_template_id (PR #208119)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 8 02:16:27 PDT 2026


================
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
+
+// Ensure no crash when DiagnoseMissingSemiAfterTagDefinition encounters an
+// annot_template_id not followed by '::'.
+
+namespace N {
----------------
cor3ntin wrote:

```suggestion
namespace GH207992 {
```

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


More information about the cfe-commits mailing list