This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: bug in gcc


On 14/06/2016 20:20, Andrew Haley wrote:

> On 14/06/16 19:18, Jim Michaels wrote:
> 
>> warning: "/*" within comment [-Wcomment]
>>   //case insensitive fs and OS BORLAND/Embarcadero c++ compiler may run on mac/*nix
> 
> Looks correct to me.  What don't you like about this warning?

(To be clear, gcc is warning about the /* comment-start token within a // comment.)

Looking at the documentation for the current release:

  https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

-Wcomment
    Warn whenever a comment-start sequence '/*' appears in a '/*' comment, or whenever
    a Backslash-Newline appears in a '//' comment. This warning is enabled by -Wall.

The doc doesn't mention warning for /* appearing in a // comment.

Regards.


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