[C++ PATCH] Fix PR/9154 (a trunk regression)

Wolfgang Bangerth bangerth@ices.utexas.edu
Fri Jun 20 17:09:00 GMT 2003


[Note that I'm poking wildly in the dark because I don't know anything of gcc 
internals, but got the impression that there are really weird cases for 
this...]

> Yes, beacuse I check for CPP_RSHIFT as terminator only for _type_ template
> parameters, while in your example you're using non-type template parameters.

How about

  template <int> struct A {
    typedef int I;
  };

  template <typename T = A< 1>>2 >::I>
  struct X {};

W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                               www: http://www.ices.utexas.edu/~bangerth/



More information about the Gcc-patches mailing list