https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68226
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org Known to work| |8.0.1 --- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > The code in comment#0 compiles with current trunk. The ICE is gone. ... The change occurred between revisions r254869 (2017-11-17, ICE) and r254940 (2017-11-19, OK), likely r254936 (pr78990). Note the warnings pr68226_db.f90:6:7: a = f() 1 Warning: POINTER-valued function appears on right-hand side of assignment at (1) [-Wsurprising] pr68226_db.f90:6:0: a = f() Warning: 'a.offset' may be used uninitialized in this function [-Wmaybe-uninitialized] pr68226_db.f90:6:0: Warning: 'a.dim[0].lbound' may be used uninitialized in this function [-Wmaybe-uninitialized] pr68226_db.f90:6:0: Warning: 'a.dim[0].ubound' may be used uninitialized in this function [-Wmaybe-uninitialized] pr68226_db.f90:6:0: a = f() Warning: 'a.dim[0].lbound' may be used uninitialized in this function [-Wmaybe-uninitialized] pr68226_db.f90:6:0: Warning: 'a.dim[0].ubound' may be used uninitialized in this function [-Wmaybe-uninitialized] pr68226_db.f90:6:0: Warning: 'a.dim[0].ubound' may be used uninitialized in this function [-Wmaybe-uninitialized] pr68226_db.f90:6:0: Warning: 'a.dim[0].lbound' may be used uninitialized in this function [-Wmaybe-uninitialized]