This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: bug in gcc
- From: Mason <slash dot tmp at free dot fr>
- To: GCC help <gcc-help at gcc dot gnu dot org>
- Cc: Andrew Haley <aph at redhat dot com>
- Date: Wed, 15 Jun 2016 09:49:26 +0200
- Subject: Re: bug in gcc
- Authentication-results: sourceware.org; auth=none
- References: <02132c65-d6f4-b5da-f719-9a25f426e6e3 at jesusnjim dot com> <57604AD7 dot 3080105 at redhat dot com>
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.