This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Suspected template parsing bug.



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|