This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78757] [7 Regression] ICE with function returning a pointer to a character
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Dec 2016 14:04:37 +0000
- Subject: [Bug fortran/78757] [7 Regression] ICE with function returning a pointer to a character
- Auto-submitted: auto-generated
- References: <bug-78757-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78757
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So the bug is that nothing has gimplified the MAX_EXPR in:
character(kind=1)[1:MAX_EXPR <_1, 0>] * pstr.0;
struct FRAME.MAIN__ FRAME.3;
character(kind=1)[1:30] * s;
integer(kind=4) _1;
integer(kind=4) _2;
integer(kind=8) * _5;
integer(kind=8) _6;
<bb 2> [0.0%]:
FRAME.3.FRAME_BASE.PARENT = 0B;
_5 = &C.3472;
_6 = *_5;
_1 = (integer(kind=4)) _6;
_2 = MAX_EXPR <_1, 0>;
f4 (&pstr.0, _2, _5); [static-chain: &FRAME.3]
s_8 = pstr.0;
pstr.0 ={v} {CLOBBER};
GIMPLE_NOP
return;
or something different?
If this, this has been broken by the r117493 change. So perhaps we need some
DECL_EXPR somewhere, but not sure which.