// { dg-do compile } template void a() { typedef struct { void b() try { b; } catch (short) { // { dg-error "invalid use" } } } c; } int main() { a<0>(); }