brintos

brintos / llvm-project-archived public Read only

0
0
Text · 725 B · 5130e3e Raw
25 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// PR103554template<typename T> void template_id1() {5  template_id2<> t; // expected-error-re {{no template named 'template_id2'{{$}}}}6 }7 8// FIXME: It would be nice if we could get this correction right.9namespace PR12297 {10  namespace A {11    typedef short   T;12    13    namespace B {14      typedef short   T;15        16      T global(); // expected-note {{'::PR12297::global' declared here}}17    }18  }19 20  using namespace A::B;21 22  // FIXME: Adding '::PR12297::' is not needed as removing 'A::' is sufficient23  T A::global(); // expected-error {{out-of-line declaration of 'global' does not match any declaration in namespace 'PR12297::A'; did you mean '::PR12297::global'?}}24}25