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++/85104] New: double underline in a C++ error: duplicate const


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

            Bug ID: 85104
           Summary: double underline in a C++ error: duplicate const
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

The redundant const keyword in the error below is underlined twice in GCC 8. 
GCC 7 underlines it just once so it seems like something is amiss.

$ cat u.C && gcc -S u.C
const int const i = 0;
u.C:1:11: error: duplicate ‘const’
 const int const i = 0;
           ^~~~~
           -----

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