This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38797] New: [c++0x] Missing warning about type qualifiers on late function return types
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2009 21:53:07 -0000
- Subject: [Bug c++/38797] New: [c++0x] Missing warning about type qualifiers on late function return types
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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