This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: backslash-newline, trigraphs, and the C standard


> 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 ??/\

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]