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
* pt.c (tsubst_decl): If the type of a template instantiation is
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
error2.C
blob
21518aac525166038a49e831d6164502ddf9fbf2
1
// Build don't link:
2
// Origin: Carl Nygard <cnygard@bellatlantic.net>
3
4
template <class RT>
5
class Test { // ERROR - in instantiation
6
public:
7
Test(const RT& c = RT()) {} // ERROR - reference to void
8
};
9
10
void f ()
11
{
12
Test<void> c; // ERROR - instantiated from here
13
}
14
15