This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] Make parser revert digraph "<:"
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Theodore Papadopoulo" <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 26 Jan 2004 22:32:39 +0100
- Subject: Re: [C++ PATCH] Make parser revert digraph "<:"
- References: <200401261837.i0QIbwEX025367@mururoa.inria.fr>
Theodore Papadopoulo wrote:
> What I dislike with your patch (and I think what Gaby and other
> dislike also) is that I will also have a message if I wrote "A[:B>".
> Ie, as far as I understand, seeing the token sequence
> <square bracket><:> you assume that the code contained "<::" which
> will not be true if the code actually contained "[:".
No, it will *try* parsing it, but fall back to the normal parsing if it can't
find a syntactically-correct template argument list after it.