This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
warning: multi-line comment (why?)
- To: gcc at gcc dot gnu dot org
- Subject: warning: multi-line comment (why?)
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- Date: Sun, 17 Sep 2000 18:54:53 -0400
Hi,
I am running:
gcc version 2.96 20000917 (experimental)
under x86 Redhat Linux. I obtained the snapshot from Codesourcery.
If I have the following code:
====================================================================
// Some comment
// \
// Some more comment
int main(int, char **) { return 0; }
====================================================================
compiling with g++ will yield the following warning:
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?
Thanks.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net