| 1 |
// PR c++/97186 |
| 2 |
// ICE in exception spec substitution |
| 3 |
// { dg-do compile { target c++11 } } |
| 4 |
|
| 5 |
template <class GG> |
| 6 |
struct no { |
| 7 |
static void |
| 8 |
tg () |
| 9 |
{ |
| 10 |
void |
| 11 |
hk () noexcept (tg); // { dg-error "convert" } |
| 12 |
|
| 13 |
hk (); |
| 14 |
} |
| 15 |
}; |
| 16 |
|
| 17 |
void |
| 18 |
os () |
| 19 |
{ |
| 20 |
no<int> ().tg (); |
| 21 |
} |