Skip to content
Snippets Groups Projects
Commit ff0425cd authored by Jonathan Wakely's avatar Jonathan Wakely Committed by Jakub Jelinek
Browse files

re PR c++/88554 (Segfault ICE when falling off the end of a reference-returning friend operator)


	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.

Co-Authored-By: default avatarJakub Jelinek <jakub@redhat.com>

From-SVN: r267672
parent 44e813ec
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment