Previously we would show an error, but keep the member, and also the CXXRrecordDecl, valid. This could lead to crashes when attempting to access the record layout or size. Differential Revision: https://reviews.llvm.org/D105478
8 lines
200 B
C++
8 lines
200 B
C++
// RUN: not %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck %s
|
|
|
|
struct Foo {
|
|
static constexpr auto Bar = ;
|
|
};
|
|
|
|
// CHECK: -VarDecl {{.*}} invalid Bar 'const auto' static constexpr
|