[Bug c/43651] New: add warning for duplicate qualifier
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 5 19:18:00 GMT 2010
The C front end does not warn for a duplicate qualifier:
static const char const * stdin_name = "<stdin>";
static const char * const stdout_name = "<stdout>";
while ICC does:
main-hv.c(54): warning #83: type qualifier specified more than once
static const char const * stdin_name = "<stdin>";
^
G++ gives an error in this case but the column number is wrong:
test.c:1:1: error: duplicate ÂconstÂ
--
Summary: add warning for duplicate qualifier
Product: gcc
Version: 4.2.4
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43651
More information about the Gcc-bugs
mailing list