]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/ChangeLog
PR c++/88554
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jan 2019 08:57:58 +0000 (08:57 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jan 2019 08:57:58 +0000 (08:57 +0000)
commit6e5908c9484df5780477a9432809599eabde1750
tree2543158574fdc0776e2b1b7f480d733de18aedff
parentcaa8ded0c1686be433e589ef90974e01eed7886d
PR c++/88554
* decl.c (finish_function): For -Wreturn-type don't add a return *this;
fixit hint if current_class_ref is NULL.  Use a single if instead of
two nested ones.

* g++.dg/warn/Wreturn-type-11.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267672 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wreturn-type-11.C [new file with mode: 0644]