diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-01-08 08:57:58 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-01-08 09:57:58 +0100 |
commit | ff0425cdeb49db33d4bfe736829005544b45e659 (patch) | |
tree | 2543158574fdc0776e2b1b7f480d733de18aedff /gcc/ada/affinity.c | |
parent | 44e813ecd1fa610e3e4ed2420a69d4a1e200b19c (diff) | |
download | gcc-ff0425cdeb49db33d4bfe736829005544b45e659.zip gcc-ff0425cdeb49db33d4bfe736829005544b45e659.tar.gz gcc-ff0425cdeb49db33d4bfe736829005544b45e659.tar.bz2 |
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: Jakub Jelinek <jakub@redhat.com>
From-SVN: r267672
Diffstat (limited to 'gcc/ada/affinity.c')
0 files changed, 0 insertions, 0 deletions