This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: multi-line comment (why?)
- To: Craig Rodrigues <rodrigc at mediaone dot net>
- Subject: Re: warning: multi-line comment (why?)
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sun, 17 Sep 2000 16:26:47 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <20000917185453.A14829@mediaone.net>
On Sun, Sep 17, 2000 at 06:54:53PM -0400, Craig Rodrigues wrote:
> x.cc:2:2: warning: multi-line comment
>
> What is the point of this warning? Shouldn't the preprocessor
> just ignore everything between the // and the end-of-line?
No, backslash-newline conversion happens before comments
are discarded. You really do have a multi-line comment;
one that would be dangerous if your next line weren't a
comment as well.
r~