mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 14:28:54 -04:00

Summary: Can happen when getConstructorName is called on invalid decls, specifically the ones that do not have the injected class name. Reviewers: bkramer, rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D48880 llvm-svn: 336244
12 lines
298 B
C++
12 lines
298 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
template <class T>
|
|
struct X : public Foo<Bar { // expected-error {{unknown template name 'Foo'}} expected-error {{use of undeclared identifier 'Bar'}}
|
|
X();
|
|
}; // expected-error {{expected '{' after base class list}}
|
|
|
|
|
|
template <class T>
|
|
X<T>::X() {
|
|
}
|