brintos

brintos / llvm-project-archived public Read only

0
0
Text · 739 B · b85a57a Raw
13 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2 3namespace GH59446 { // expected-note {{to match this '{'}}4namespace N {5    template <typename T> struct X ; // expected-note 2 {{template is declared here}}6                                     // expected-note@-1 {{'N::X' declared here}}7				     // expected-note@-2 {{non-type declaration found by destructor name lookup}}8  }9  void f(X<int> *x) { // expected-error {{no template named 'X'; did you mean 'N::X'}}10    x->N::X<int>::~X(); // expected-error 2 {{implicit instantiation of undefined template 'GH59446::N::X<int>'}}11                        // expected-error@-1 {{identifier 'X' after '~' in destructor name does not name a type}}12} // expected-error {{expected '}'}}13