mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 18:46:40 +00:00

Codebases that need to be compatible with the Microsoft ABI can pass this flag to avoid issues caused by the lack of a fixed ABI for incomplete member pointers. Differential Revision: https://reviews.llvm.org/D47503 llvm-svn: 333498
16 lines
321 B
C++
16 lines
321 B
C++
// RUN: %clang_cc1 -verify -fsyntax-only -fcomplete-member-pointers %s
|
|
|
|
struct S; // expected-note {{forward declaration of 'S'}}
|
|
typedef int S::*t;
|
|
t foo; // expected-error {{member pointer has incomplete base type 'S'}}
|
|
|
|
struct S2 {
|
|
int S2::*foo;
|
|
};
|
|
int S2::*bar;
|
|
|
|
template <typename T>
|
|
struct S3 {
|
|
int T::*foo;
|
|
};
|