gcc/testsuite/g++.dg/cpp0x/pr68724.C
raw| 1 | // PR 68724 ICE in unificiation |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template <typename _Tp, _Tp> |
| 5 | struct integral_constant |
| 6 | { |
| 7 | }; |
| 8 | |
| 9 | integral_constant<bool, true> inst; |
| 10 | |
| 11 | template <typename _Tp> |
| 12 | struct integral_constant<bool, __is_enum(_Tp)> // { dg-error "not deducible" } |
| 13 | { |
| 14 | }; |
| 15 |