[Bug middle-end/95472] New: various diagnostics for C/C++ hyperlinks to gfortran doc
xry111 at mengyan1223 dot wang
gcc-bugzilla@gcc.gnu.org
Tue Jun 2 03:42:13 GMT 2020
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.
More information about the Gcc-bugs
mailing list