[Bug c++/82159] [6/7/8 Regression] ICE: in assign_temp, at function.c:961
chr at terma dot com
gcc-bugzilla@gcc.gnu.org
Fri Oct 6 07:37:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82159
chr at terma dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chr at terma dot com
--- Comment #6 from chr at terma dot com ---
(In reply to Jakub Jelinek from comment #5)
> Author: jakub
> Date: Sat Sep 30 08:25:02 2017
> New Revision: 253318
>
> URL: https://gcc.gnu.org/viewcvs?rev=253318&root=gcc&view=rev
> Log:
> Backported from mainline
> 2017-09-27 Jakub Jelinek <jakub@redhat.com>
>
> PR c++/82159
> * gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
> lhs from calls if the lhs has addressable type.
>
> * g++.dg/opt/pr82159.C: New test.
>
> Added:
> branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/pr82159.C
> Modified:
> branches/gcc-7-branch/gcc/ChangeLog
> branches/gcc-7-branch/gcc/gimplify.c
> branches/gcc-7-branch/gcc/testsuite/ChangeLog
Don't know if this is releated, but we exprience a similar issue (works on
GCC5, fails on 6 and 7).
Newest snapshot build gcc-7-20171005.tar.xz:
internal compiler error: in assign_temp, at function.c:968
mY(obs.mZ - ProjectState<Obs,
ProbabilityDensity>::project(prediction.getMean(), obs)) {
(the error arrow points at last ")"
I cannot include the preprocessed code.
It works with -O1 to -O3, but fails with -O0
More information about the Gcc-bugs
mailing list