This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68226] [6/7/8 Regression] [OOP] ICE on assignment of pointer-valued function to allocatable
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Feb 2018 22:20:25 +0000
- Subject: [Bug fortran/68226] [6/7/8 Regression] [OOP] ICE on assignment of pointer-valued function to allocatable
- Auto-submitted: auto-generated
- References: <bug-68226-4@http.gcc.gnu.org/bugzilla/>
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]