Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
bad-type.C
blob: fffa8c5310c283b5a3da8c987d847cd63c416bc7 [
file
] [
log
] [
blame
]
// { dg-do assemble }
template
<
class
Type
>
class
A
{
public
:
Type
m
;
};
template
<
class
Type
>
void
f
(
A
<
Type
>&
a
,
Type
d
)
{
A
.
m
=
d
;
// { dg-error "" } invalid use of template
}
int
main
()
{
A
<int>
a
;
f
(
a
,
2
);
}