public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/95472] New: various diagnostics for C/C++ hyperlinks to gfortran doc
@ 2020-06-02  3:42 xry111 at mengyan1223 dot wang
  2020-06-02  3:45 ` [Bug middle-end/95472] " xry111 at mengyan1223 dot wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: xry111 at mengyan1223 dot wang @ 2020-06-02  3:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95472

            Bug ID: 95472
           Summary: various diagnostics for C/C++ hyperlinks to gfortran
                    doc
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xry111 at mengyan1223 dot wang
  Target Milestone: ---

$ cat t1.c
int main()
{
        int x;
        return x;
}
$ gcc t1.c -Wall
t1.c: In function 'main':
t1.c:4:9: warning: 'x' is used uninitialized in this function [-Wuninitialized]
    4 |  return x;
      |         ^

It looks OK, but in GCC-10 we have diagnostics with hyperlink.  If you click "-
Wuninitialized" you'll be diverted to gfortran doc:

https://gcc.gnu.org/onlinedocs/gfortran/Error-and-Warning-Options.html#index-Wuninitialized

This also happens to -Wreturn-type and -Wuninitialized.  Strangely these two
entries don't even exist in gfortran doc.  But it does not happens to -Wformat
or -Wimplicit-function-declaration etc.

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

* [Bug middle-end/95472] various diagnostics for C/C++ hyperlinks to gfortran doc
  2020-06-02  3:42 [Bug middle-end/95472] New: various diagnostics for C/C++ hyperlinks to gfortran doc xry111 at mengyan1223 dot wang
@ 2020-06-02  3:45 ` xry111 at mengyan1223 dot wang
  2020-06-02  5:57 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: xry111 at mengyan1223 dot wang @ 2020-06-02  3:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95472

--- Comment #1 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
(In reply to Xi Ruoyao from comment #0)

> This also happens to -Wreturn-type and -Wuninitialized.  Strangely these two
> entries don't even exist in gfortran doc.  But it does not happens to
> -Wformat or -Wimplicit-function-declaration etc.

Sorry I can't type.  Should be:

This also happens to -Wreturn-type.  Strangely the entries for -Wreturn-type
and -Wuninitialized don't even exist in gfortran doc.

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

* [Bug middle-end/95472] various diagnostics for C/C++ hyperlinks to gfortran doc
  2020-06-02  3:42 [Bug middle-end/95472] New: various diagnostics for C/C++ hyperlinks to gfortran doc xry111 at mengyan1223 dot wang
  2020-06-02  3:45 ` [Bug middle-end/95472] " xry111 at mengyan1223 dot wang
@ 2020-06-02  5:57 ` marxin at gcc dot gnu.org
  2020-06-02  6:14 ` xry111 at mengyan1223 dot wang
  2020-06-02  8:01 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-02  5:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95472

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-06-02

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed.

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

* [Bug middle-end/95472] various diagnostics for C/C++ hyperlinks to gfortran doc
  2020-06-02  3:42 [Bug middle-end/95472] New: various diagnostics for C/C++ hyperlinks to gfortran doc xry111 at mengyan1223 dot wang
  2020-06-02  3:45 ` [Bug middle-end/95472] " xry111 at mengyan1223 dot wang
  2020-06-02  5:57 ` marxin at gcc dot gnu.org
@ 2020-06-02  6:14 ` xry111 at mengyan1223 dot wang
  2020-06-02  8:01 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: xry111 at mengyan1223 dot wang @ 2020-06-02  6:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95472

--- Comment #3 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
Well, seems fixed by Jakub at efaffc69 (in master) and a764bbb7 (in gcc-10) so
far.

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

* [Bug middle-end/95472] various diagnostics for C/C++ hyperlinks to gfortran doc
  2020-06-02  3:42 [Bug middle-end/95472] New: various diagnostics for C/C++ hyperlinks to gfortran doc xry111 at mengyan1223 dot wang
                   ` (2 preceding siblings ...)
  2020-06-02  6:14 ` xry111 at mengyan1223 dot wang
@ 2020-06-02  8:01 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-06-02  8:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95472

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |10.1.1
         Resolution|---                         |FIXED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for 10.2.

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

end of thread, other threads:[~2020-06-02  8:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02  3:42 [Bug middle-end/95472] New: various diagnostics for C/C++ hyperlinks to gfortran doc xry111 at mengyan1223 dot wang
2020-06-02  3:45 ` [Bug middle-end/95472] " xry111 at mengyan1223 dot wang
2020-06-02  5:57 ` marxin at gcc dot gnu.org
2020-06-02  6:14 ` xry111 at mengyan1223 dot wang
2020-06-02  8:01 ` rguenth at gcc dot gnu.org

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).