[clang] [clang] Fix clang++ crash on assertions when compiling source (PR #70594)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 30 13:52:04 PDT 2023
================
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
+// RUN: %clang_cc1 -fsyntax-only -std=c++23 %s -verify
+
+// expected-no-diagnostics
+
+struct A {};
+using CA = const A;
+
+struct S1 : CA {
----------------
shafik wrote:
These examples: https://godbolt.org/z/8T3643496 don't crash clang and so don't really test the original bug. Please add the example from the bug report that does crash: https://godbolt.org/z/4naMG1q6r so we have a proper regression test.
https://github.com/llvm/llvm-project/pull/70594
More information about the cfe-commits
mailing list