gcc/testsuite/g++.dg/modules/pr99283-4.H
raw| 1 | // PR 99283 part 3, ICE with template alias as default template parm |
| 2 | // of member template |
| 3 | // { dg-additional-options -fmodule-header } |
| 4 | // { dg-module-cmi {} } |
| 5 | |
| 6 | template<typename _Traits> |
| 7 | struct _Insert |
| 8 | { |
| 9 | using size_type = int; |
| 10 | |
| 11 | template<typename _Pair> |
| 12 | using _IFconsp = bool; |
| 13 | |
| 14 | template<typename _Pair, typename = _IFconsp<_Pair>> |
| 15 | int insert (_Pair&& __v); |
| 16 | }; |
| 17 | |
| 18 | void Foo (typename _Insert<int>::size_type); |
| 19 | |
| 20 |