The C++ frontend doesn't warn about superfluous const's in function
return types like the following (even with -Wall -W -pedantic):

=====================
const void bar();
const int foo();
=====================

This affects all compilers since 2.95.3.
The C frontend does warn about such situations.

-- 
           Summary: Missing warning for superfluous const's in return types
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18313

Reply via email to