Warning for trigraphs in comment?

Gabriel Dos Reis gdr@integrable-solutions.net
Mon May 19 06:51:00 GMT 2003


Neil Booth <neil@daikokuya.co.uk> writes:

| Gabriel Dos Reis wrote:-
| 
| > is extracted from Herb's GTW #86 -- full message appended below.
| > I would suggest we warn for trigraphs in comments.
| 
| I changed this particular case a few weeks ago.

Thanks!

Since the discussion was about compilers released for production used,
I just content myself with checking 3.2.3 and 3.3 and found that the
comment and the behaviour were indeed there.

| In general I think warning about trigraphs in comments is a bad idea.

I see you stated a personal opinion but I think we need to weight that
against the fact that we got real world experience and the fact that
the comment is not accurate. 

|  This particular
| case I was of course always aware of, but considered it obscure.
| 3.4 documentation and behaviour is already good enough for you I
| think. 

It is not particularly me.  I was reporting input from discussions
which at first sight looked to me as just an academic exercise and it
turned out that it happened in reality.

| The patch is not appropriate for 3.3.
| 
| The real fix is to remove trigraphs from the standard.

Oh, I'm all for removing trigraphs, digraphs, quadrigraphs and
whatevergraphs -- I've also thought they were mistakes.  But, in fact,
I'm skeptical that  would ever happen. 

Anyway, I'm glad to hear that 3.4 will behave differently.

-- Gaby



More information about the Gcc mailing list