This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85104] New: double underline in a C++ error: duplicate const
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Mar 2018 22:32:53 +0000
- Subject: [Bug c++/85104] New: double underline in a C++ error: duplicate const
- Auto-submitted: auto-generated
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;
^~~~~
-----