This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/38797] New: [c++0x] Missing warning about type qualifiers on late function return types


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]