2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename27.C
blobae89a67ce1de5db0757ef25dbd390f84339147a0
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 9 Aug 2000 <nathan@codesourcery.com>
6 // bugs 173, 174 & 406 all ICE'd due to Koenig lookup involving
7 // typename T::t.
9 struct A
11   typedef int type;
14 template<typename T> void same_key (T, typename T::type);
16 template <class T> void foo (T *, void (*) (T, int));
18 void baz (A *ptr)
20   foo (ptr, same_key);