gcc/testsuite/g++.dg/template/crash20.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Copyright (C) 2004 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 22 Jul 2004 <[email protected]> |
| 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 |