brintos

brintos / llvm-project-archived public Read only

0
0
Text · 393 B · c0034cd Raw
16 lines · cpp
1// RUN: %clang_cc1 %s2 3template <typename T>4struct Foo {5  template <typename U>6  struct Bar {};7 8  // The templated declaration for class Bar should not be instantiated when9  // Foo<int> is. This is to protect against PR5848; for now, this "parses" but10  // requires a rewrite of the templated friend code to be properly fixed.11  template <typename U>12  friend struct Bar;13};14 15Foo<int> x;16