This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suspected template parsing bug.
- To: egcs at egcs dot cygnus dot com
- Subject: Re: Suspected template parsing bug.
- From: Paul Derbyshire <pderbysh at usa dot net>
- Date: Sun, 28 Feb 1999 00:42:38 -0500
At 10:15 PM 2/27/99 -0500, you wrote:
>If X::rebind is fashioned in the same vein as std::allocator<T>::rebind<U>,
>then you must qualify it with the 'template' keyword.
>
> ... typename X::template rebind< ....
1. Not according to Stroustrup 3rd Ed, aka 'source'.
2. The code in question compiles once I fix the real error, which is
that "math_traits" wasn't in scope. The bug has proven on close
inspection to be that egcs is emitting the wrong error message
soemtimes when the real error is an undeclared identifier.
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh@usa.net
Programmer & Humanist|ICQ: 10423848|