https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86322

--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Tue, Jan 08, 2019 at 08:15:46PM +0000, janus at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86322
> 
> janus at gcc dot gnu.org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |janus at gcc dot gnu.org
> 
> --- Comment #3 from janus at gcc dot gnu.org ---
> I have not verified, but I'm pretty sure the regression is due to r260808:
> 
> 2018-05-27  Steven G. Kargl  <ka...@gcc.gnu.org>
> 
>  * decl.c (match_data_constant):  Fortran 2018 allows pointer
>  initialization in a data statement.
> 

Naw, it is is not due to my patch.  Rather my patch has
exposed or uncovered a bug in gfortran.  gfortran needs
to check

F2018:C877 (R839) A data-i-do-object or a variable that appears as a
   data-stmt-object shall not be an object designator in which a pointer
   appears other than as the entire rightmost part-ref .

In decl.c (gfc_match_data), gfortran needs a check for C877.
I haven't gotten around to fixing this yet, and I likely won't
for the foreseeable future.

Reply via email to