[PATCH,Fortran] Allow pointer initialization in DATA
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri May 25 01:14:00 GMT 2018
The attach patch allows for pointer initialization in
a DATA statement per F2018. Yes, it's weird that a
data-constant-object is not a named parameter. The
'data-constant-object' is required to have the SAVE and
TARGET attribute.
Built and regression tested on x86_64-*-freebsd.
OK to commit?
PS: I'm sure Gerhard can break this.
2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
* decl.c (match_data_constant): Fortran 2018 allows pointer
initialization in a data statement.
2018-05-24 Steven G. Kargl <kargl@gcc.gnu.org>
* gfortran.dg/data_stmt_pointer.f90: new test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z_data_st_ptr.diff
Type: text/x-diff
Size: 1555 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180525/c00399b7/attachment.bin>
More information about the Fortran
mailing list