public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* warning: multi-line comment (why?)
@ 2000-09-17 15:53 Craig Rodrigues
  2000-09-17 16:12 ` Jan Dvorak
  2000-09-17 16:26 ` Richard Henderson
  0 siblings, 2 replies; 17+ messages in thread
From: Craig Rodrigues @ 2000-09-17 15:53 UTC (permalink / raw)
  To: gcc

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          

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2000-09-26 10:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20000925230543.A28863@daikokuya.demon.co.uk>
2000-09-25 15:18 ` warning: multi-line comment (why?) Joern Rennecke
2000-09-25 15:53   ` Neil Booth
2000-09-25 16:39     ` Joern Rennecke
2000-09-26  3:43     ` Jamie Lokier
2000-09-26 10:13       ` Neil Booth
2000-09-17 15:53 Craig Rodrigues
2000-09-17 16:12 ` Jan Dvorak
2000-09-17 16:26 ` Richard Henderson
2000-09-18  3:04   ` Jamie Lokier
2000-09-19  9:05     ` Jan Dvorak
2000-09-19 10:13       ` Jamie Lokier
2000-09-19 11:44         ` Jan Dvorak
     [not found]         ` <20000919214025.A30587@daikokuya.demon.co.uk>
     [not found]           ` <20000919214320.A30677@daikokuya.demon.co.uk>
2000-09-20  8:52             ` Jamie Lokier
2000-09-20  9:38               ` Neil Booth
2000-09-25 12:52                 ` Jamie Lokier
2000-09-25 14:10                   ` Neil Booth
2000-09-25 14:34                     ` Joern Rennecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).