This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Suspected template parsing bug.
- To: egcs at egcs dot cygnus dot com, egcs-bugs at egcs dot cygnus dot com
- Subject: Suspected template parsing bug.
- From: Paul Derbyshire <pderbysh at usa dot net>
- Date: Sat, 27 Feb 1999 21:35:34 -0500
The following declaration gets a "parse error before '<'" that appears to
be spurious:
static X &transform (const BinOp &op,
X &x,
typename math_traits<
typename X::rebind<
typename __ref_remover<
typename BinOp::second_argument_type
>::value_type
>::other
>::pass_type y) throw ();
As you can see, all the aggressive "typename"ing in the world to qualify
what template args are types doesn't prevent the error message.
--
.*. "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|