OSDN Git Service

PR c++/54858
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash20.C
1 // { dg-do compile }
2
3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 22 Jul 2004 <nathan@codesourcery.com>
5
6 // ICE with incompletable type.
7
8 class INC;
9
10 template <typename T> class B {};
11
12 template<typename T> void Foo (B<T> &);
13
14 void Foo (INC &);
15
16 void Baz (INC *p)
17 {
18   Foo (*p);
19 }
20