This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: backslash-newline, trigraphs, and the C standard
- To: Joe Buck <jbuck at synopsys dot COM>
- Subject: Re: backslash-newline, trigraphs, and the C standard
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Thu, 13 Jan 2000 20:44:16 +0000 (GMT)
- CC: Geoff Keating <geoffk at cygnus dot com>, Zack Weinberg <zack at wolery dot cumb dot org>, gcc at gcc dot gnu dot org
> With trigraphs on, this is
>
> /* some comment \*/
>
> so the comment is not ended. Can anyone come up with any other cases?
But it is ended! \* is just like *.
I'm not sure about this one - is it supposed to be ended when trigraphs
are enabled?
/* some comment *??//
Here are some interesting C++ - style comments:
This one ends at the line end without trigraphs:
// some comment ??/
This one ends at the line end *with* trigraphs:
// some comment ??/\