[Bug c++/78119] wrong diagnostic pointer for -Werror=ignored-qualifiers

pawel_sikora at zoho dot com gcc-bugzilla@gcc.gnu.org
Tue Aug 29 11:40:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78119

Pawel Sikora <pawel_sikora at zoho dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |7.1.1
      Known to fail|                            |6.3.1

--- Comment #2 from Pawel Sikora <pawel_sikora at zoho dot com> ---
% cat t.cpp 
typedef void* Y;
struct X {
    const Y get() const;
};
% ~/toolchain/gcc/sysroot/x86_64-gnu-linux/bin/x86_64-gnu-linux-g++ t.cpp -Wall
-Wextra -c
t.cpp:3:19: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
     const Y get() const;
                   ^~~~~


More information about the Gcc-bugs mailing list