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