This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Suspected template parsing bug.


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|


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]