This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/33063] C++ preprocessor warns about /* in //-comments starting with //*
- From: "trick at icculus dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2007 20:03:42 -0000
- Subject: [Bug preprocessor/33063] C++ preprocessor warns about /* in //-comments starting with //*
- References: <bug-33063-9364@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from trick at icculus dot org 2007-08-13 20:03 -------
(In reply to comment #1)
> And I don't see why it is wrong to warn here because it is /* still as // is
> really two tokens and so is /* .
Shouldn't //* be treated as '//' followed by '*' though? Even if not:
// /*
this is not commented out
// */
Since /* */ comments are ineffective within //-comments, there's not any reason
to warn about them there anyway. All that warning does is cluttering up the
output.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33063