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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
error2.C
blob
2f777afdc70afc3f9162de3bbf51f345b5ef5961
1
// { dg-do assemble }
2
// Origin: Carl Nygard <cnygard@bellatlantic.net>
3
4
template <class RT>
5
class Test { // { dg-error "" } in instantiation
6
public:
7
Test(const RT& c = RT()) {} // { dg-error "" } reference to void
8
};
9
10
void f ()
11
{
12
Test<void> c; // { dg-error "" } instantiated from here
13
}
14
15