This is the mail archive of the gcc-bugs@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]

[Bug c++/78119] New: wrong diagnostic pointer for -Werror=ignored-qualifiers


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

            Bug ID: 78119
           Summary: wrong diagnostic pointer for
                    -Werror=ignored-qualifiers
           Product: gcc
           Version: 6.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pawel_sikora at zoho dot com
  Target Milestone: ---

gcc points to the wrong 'const' in error message, e.g.:


error: type qualifiers ignored on function return type
[-Werror=ignored-qualifiers]

 const HMESSAGE YamiReplyMsg::get() const {
                                    ^~~~~

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