OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* pt.c (tsubst_decl): If the type of a template instantiation is
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
error2.C
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