[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / flexary1.C
blob4033e339da011f150fad0a2c82f61b3886380462
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 22 Jul 2003 <nathan@codesourcery.com>
6 // PR c++ 11614
8 typedef int ary_t[];
10 struct test
12   ary_t *b;
13   int (*a)[]; // this is not a flexible array member
16 void test(void)
18   struct test s;
19   int (*a)[] = 0;
20   ary_t *b = 0;
21   
22   a = s.a;
23   a = s.b;
25   s.a = a;
26   s.b = a;
28   b = s.a;
29   b = s.b;
31   s.a = b;
32   s.b = b;