warning: multi-line comment (why?)
Craig Rodrigues
rodrigc@mediaone.net
Sun Sep 17 15:53:00 GMT 2000
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
More information about the Gcc
mailing list