brintos

brintos / llvm-project-archived public Read only

0
0
Text · 304 B · a4bfccb Raw
22 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only %s2 3template <typename T>4struct foo {5  struct bar;6 7  bar fn() {8    // Should not get errors about bar being incomplete here.9    bar b = bar(1, 2);10    return b;11  }12};13 14template <typename T>15struct foo<T>::bar {16  bar(int, int);17};18 19void fn() {20  foo<int>().fn();21}22