[Bug fortran/68226] [6/7/8 Regression] [OOP] ICE on assignment of pointer-valued function to allocatable

2018-02-23 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68226

Dominique d'Humieres  changed:

   What|Removed |Added

 CC||pault at gcc dot gnu.org
  Known to work||8.0.1

--- Comment #6 from Dominique d'Humieres  ---
> 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]

[Bug fortran/68226] [6/7/8 Regression] [OOP] ICE on assignment of pointer-valued function to allocatable

2018-02-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68226

--- Comment #5 from Harald Anlauf  ---
The code in comment#0 compiles with current trunk.  The ICE is gone.

Not sure if the code is valid, but NAG accepts it
without complaining.

Adding a line

  print *, a

prints

   1   2

which I think is correct.

[Bug fortran/68226] [6/7/8 Regression] [OOP] ICE on assignment of pointer-valued function to allocatable

2017-11-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68226

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|5.5 |6.5