This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

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


[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/


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