[Bug c++/89403] [7/8 Regression] ICE in maybe_clone_body, at cp/optimize.c:693

2019-04-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89403

--- Comment #6 from Jakub Jelinek  ---
Author: jakub
Date: Tue Apr 30 20:32:14 2019
New Revision: 270716

URL: https://gcc.gnu.org/viewcvs?rev=270716&root=gcc&view=rev
Log:
Backported from mainline
2019-02-20  Jakub Jelinek  

PR c++/89403
* decl2.c (c_parse_final_cleanups): Move TREE_ASM_WRITTEN setting
for flag_syntax_only from here...
* semantics.c (expand_or_defer_fn_1): ... here.

* g++.dg/cpp0x/pr89403.C: New test.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/pr89403.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/decl2.c
branches/gcc-8-branch/gcc/cp/semantics.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug c++/89403] [7/8 Regression] ICE in maybe_clone_body, at cp/optimize.c:693

2019-02-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89403

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
   |maybe_clone_body, at|maybe_clone_body, at
   |cp/optimize.c:693   |cp/optimize.c:693

--- Comment #5 from Jakub Jelinek  ---
Fixed on the trunk so far.