| 1 | // RUN: not %clang_cc1 -x c++ -std=c++17 -fsyntax-only %s |
|---|---|
| 2 | template <typename U> |
| 3 | class Imp { |
| 4 | template <typename F> |
| 5 | explicit Imp(F f); |
| 6 | }; |
| 7 | |
| 8 | template <typename T> |
| 9 | class Cls { |
| 10 | explicit Imp() : f() {} |
| 11 | }; |
| 12 |
| 1 | // RUN: not %clang_cc1 -x c++ -std=c++17 -fsyntax-only %s |
|---|---|
| 2 | template <typename U> |
| 3 | class Imp { |
| 4 | template <typename F> |
| 5 | explicit Imp(F f); |
| 6 | }; |
| 7 | |
| 8 | template <typename T> |
| 9 | class Cls { |
| 10 | explicit Imp() : f() {} |
| 11 | }; |
| 12 |