repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash20.C
blob
0492b72e35ebd02b78e125cb2f6f2446bffa8a97
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