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