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)


"Giovanni Bajo" <giovannibajo@libero.it> writes:

> the following patch fixes PR/9154 by modifying the new parser to identify
> the ">>" token within a template argument list as a typo from the user for
> "> >", as it was done on the previous parser.

But ">>" *can* occur in a template list:

template <int N> int f() { return N; }
int g() { return f<256 >> 4>(); }

Is this handled correctly by your patch? In any case, something like
this should be added to the test case.

-- 
	Falk


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