gcc/testsuite/g++.dg/concepts/template-parm11.C
raw| 1 | // { dg-do compile { target c++17 } } |
| 2 | // { dg-options "-fconcepts" } |
| 3 | |
| 4 | template<typename T> |
| 5 | concept NameProvider = |
| 6 | requires(){ |
| 7 | typename T::_name_t::template _member_t<int>; |
| 8 | }; |
| 9 | |
| 10 | template<NameProvider... ColSpec> |
| 11 | void getTable(const ColSpec&...) |
| 12 | {} |
| 13 | |
| 14 | void f() |
| 15 | { |
| 16 | getTable(7, 'a'); // { dg-error "" } |
| 17 | }; |