This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78119] wrong diagnostic pointer for -Werror=ignored-qualifiers
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2017 11:26:14 +0000
- Subject: [Bug c++/78119] wrong diagnostic pointer for -Werror=ignored-qualifiers
- Auto-submitted: auto-generated
- References: <bug-78119-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78119
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |8.0
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Pawel Sikora from comment #2)
> % 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;
> ^~~~~
It points to the correct one for me with gcc8:
$ /usr/local/bin/g++ -Wall -Wextra -c 78119.cc
78119.cc:3:5: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
const Y get() const;
^~~~~
$
Hopefully someone with a better computer than me can bisect and find out when
this was fixed.