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

a base class via a using-declaration. If a class has a using-declaration declaring either a constructor or an assignment operator, eagerly declare its special members in case they need to displace a shadow declaration from a using-declaration. llvm-svn: 269398
10 lines
239 B
C++
10 lines
239 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
struct C { // expected-note 1+{{candidate}}
|
|
virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
|
|
};
|
|
|
|
void f() {
|
|
C c; // expected-error {{no matching constructor}}
|
|
}
|