Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / cast2.C
blobec1c6b27fb654e31ba85fab3cd277d986e640b3d
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>
6 // Bug 1588. We ICE'd on reparsing an absdcl as a cast inside a template
7 // function.
9 class A {
10 public:
11  template <class T> void f(void *CLUTp);
14 template <class T> void A::f(void *CLUTp)
16     void *CLUT;
18     CLUT = (unsigned char [3][256])CLUTp; // { dg-error "" } cast to array
20     return;
24 int main()
26         A myobj;
27         unsigned char t[3][256];
29         myobj.f<unsigned char>(t);
30                 
31         return 0;