[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / label14.C
blob990673de67948bf7e2ae5767972fc8bc17190eed
1 // PR c++/53812
2 // { dg-do compile }
3 // { dg-options "" }
4 // { dg-require-effective-target indirect_jumps }
6 struct T { T () : t(0) {}; int t; ~T (); };
7 struct S { void *operator [] (T); };
8 void bar (S &, void *, void *);
10 void
11 foo (S &x, T &y)
13   bar (x, &&l1, &&l2);
14 l1:
15   goto *x[y];
16 l2:
17   bar (x, &&l1, &&l2);