This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Make parser revert digraph "<:"
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Giovanni Bajo <giovannibajo at libero dot it>, gcc-patches at gcc dot gnu dot org
- Date: 26 Jan 2004 18:38:06 +0100
- Subject: Re: [C++ PATCH] Make parser revert digraph "<:"
- Organization: Integrable Solutions
- References: <0b6301c3e3ae$a38b35d0$62b92997@bagio><4015440A.4000905@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
| Giovanni Bajo wrote:
|
| >Hello Mark,
| >
| >this patch makes the parser aware that "<:" is a digraph for "[". In other
| >words, if the parser sees "A[:0>", where A is a template, it will parse it as
| >"A< ::0>", and will emit the following diagnostic:
| >
| I think that we should only emit this diagnostic if a digraph really
| was present,
Agreed. That is what I tried to say in words, and later in symbols
with
vector<::foo> x;
vector[:foo> y;
Doing that requires to test whether token-value('[') was spelt '<:'.
-- Gaby