FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900406_02.C
blobdaf46a14e861252d540798da35411d59ce207015
1 // g++ bug 900406_02
3 // g++ fails to correctly parse some type specifications within casts.
5 // This results in incorrect errors being issued.
7 // These errors are not issued for identical code by either cfront or
8 // by gcc.
10 // cfront 2.0 passes this test.
12 // keywords: syntax, array types, casts
14 int (*ipp)[];
15 int (**ippp)[];
17 int function ()
19   ipp = (int (*)[]) 0;                  // OK
20   ippp = (int (**)[]) 0;                // gets bogus error (syntax)
21   return 0;
24 int main () { return 0; }