Compiling the following code snippet with "-Wall -Wextra -std=gnu++0x" results in a warning for the first line, but not for the second:
============================== const int foo(); auto bar() -> const int; ============================== bug.cc:1: warning: type qualifiers ignored on function return type -- Summary: [c++0x] Missing warning about type qualifiers on late function return types Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: diagnostic, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38797