Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memclass6.C
blob: b462b920ff32225d8aa30439386076f91bc7f924 [
file
] [
log
] [
blame
]
// { dg-do run }
// Compiler: egcs-2.91.12 980302
// Error: compiler error in ctor of 'foo::bar<T>::bar(T const &)'
struct
foo
{
template
<
typename
T
>
struct
bar
{
bar
(
T
const
&
t
)
:
tt
(
t
)
{}
T tt
;
};
};
int
main
()
{
foo
::
bar
<int>
fb
(
3
);
return
0
;
}