[Bug c++/88554] [9 Regression] Segfault ICE when falling off the end of a reference-returning friend operator
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 8 08:58:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88554
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jan 8 08:57:58 2019
New Revision: 267672
URL: https://gcc.gnu.org/viewcvs?rev=267672&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/warn/Wreturn-type-11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list