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]

warning: multi-line comment (why?)


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          

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