This is the mail archive of the gcc-bugs@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]

Re: 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 ();

You may well have found a bug, but without a complete program (where are
X, math_traits, rebind, etc defined?) no one will be able to debug the
problem.  Please resend with a complete program (preprocessor output
from the file you're trying to compile is one possibility).

> 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.

The typename keyword will probably not make a difference in this case,
since this is not a template definition.






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