This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix PR/9154 (a trunk regression)
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Falk Hueffner" <falk dot hueffner at student dot uni-tuebingen dot de>
- Cc: <gcc-patches at gcc dot gnu dot org>,"Wolfgang Bangerth" <bangerth at ices dot utexas dot edu>
- Date: Fri, 20 Jun 2003 17:17:52 +0200
- Subject: Re: [C++ PATCH] Fix PR/9154 (a trunk regression)
- References: <1d0d01c33733$9e0da520$114e2697@bagio> <87brwsx2kw.fsf@student.uni-tuebingen.de>
Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> wrote:
> But ">>" *can* occur in a template list:
Wolfgang suggested even more cases in the PR audit trail
(http://gcc.gnu.org/PR9154). They are handled correctly by my patch, I
extended the testcase again, to support them.
Giovanni Bajo
// { dg-do compile }
// Origin: <tilps at hotmail dot com>
// c++/9154: poor error message for ">>" vs "> >" in template argument list
template <class T>
class A {};
template <int N>
void B(void) {}
template <int N = 123>>4>
struct C {};
template <int> struct D {};
template <typename> struct E {};
E<D< 1>>2 > > E1;
const int x = 0;
E<D< 1>>x > > E2;
int main()
{
B<256 >> 4>();
A<A<int>> blah; // { dg-error "" "should be '> >' within" }
}