[Bug other/102060] New: -Wprio-ctor-dtor underlines the wrong part of the source line
nightstrike at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Aug 25 10:13:53 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102060
Bug ID: 102060
Summary: -Wprio-ctor-dtor underlines the wrong part of the
source line
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: nightstrike at gmail dot com
Target Milestone: ---
We get a warning when building for windows that should be fixed, but it
highlights that the warning is slightly mistaken about where the problem is:
gcc-git/libgcc/config/i386/cygming-crtend.c:59:1: warning: constructor
priorities from 0 to 100 are reserved for the implementation [-Wprio-ctor-dtor]
59 | static void register_frame_ctor (void) __attribute__ ((constructor
(0)));
| ^~~~~~
The word "static" is underlined, but I presume that instead it should be
"constructor(0)".
More information about the Gcc-bugs
mailing list