Sign in
gnu
/
gcc
/
609d1c1bf0472f9d9415b0b124603348dbcd9e4e
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
bad-type.C
blob: 6b22b86a30f4a2129fd437919899c9f94c326653 [
file
] [
log
] [
blame
]
template
<
class
Type
>
class
A
{
public
:
Type
m
;
};
template
<
class
Type
>
void
f
(
A
<
Type
>&
a
,
Type
d
)
{
A
.
m
=
d
;
// ERROR - invalid use of template
}
int
main
()
{
A
<int>
a
;
f
(
a
,
2
);
}