Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
error2.C
blob: 2e65718b67957f8f304c26cfc2bc95750944a933 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Origin: Carl Nygard <cnygard@bellatlantic.net>
template
<
class
RT
>
class
Test
{
public
:
Test
(
const
RT
&
c
=
RT
())
{}
// { dg-error "reference to void" }
};
void
f
()
{
Test
<void>
c
;
// { dg-message "required" }
}