2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash64.C
blobd2457e8588664bdca3de8331128aa1354c3374c8
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 1546. We ICE'd trying to unify an array of unknown bound,
7 // checking to see if it was a variable sized array.
9 template <class _Tp> class allocator {};
11 template <class _Tp, class _Allocator>
12 struct _Alloc_traits
14   static const bool _S_instanceless = false;
17 template <class _Tp, class _Tp1>
18 struct _Alloc_traits<_Tp, allocator<_Tp1> >
20   static const bool _S_instanceless = true;
23 typedef char state [];
24 bool y = _Alloc_traits<state, allocator<state> >::_S_instanceless;