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