This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Nested-template member function does not compile
- To: gcc-bugs at gcc dot gnu dot org, aydiner at empc22 dot ece dot uiuc dot edu
- Subject: Re: Nested-template member function does not compile
- From: Kriang Lerdsuwanakij <lerdsuwa at usc dot edu>
- Date: Sat, 16 Sep 2000 19:55:06 -0700
> [~/tmp][4034] >gcc -DMAYBEABUG try3.C
> try3.C: In method `S<double,C>::S(C<double> &, N<double> &)':
> try3.C:60: instantiated from here
> try3.C:50: `CT' is not a template
> try3.C:50: no matching function for call to `N<double>::f (C<double>
&)'
>
> In the above, CT is a nested template. When MAYBEABUG is not defined,
a
> regular template is employed instead, which compiles perfectly. Is the
> nested case not allowed by the standard? Have I made a silly mistake?
Or
> is this an actual bug?
Thanks for the report. It's a bug in gcc 2.95.2. This has been fixed
in the CVS.
--Kriang