Hi FX!
Am 10.06.23 um 18:22 schrieb FX Coudert:
Hi,
I was looking at our table for Fortran 2008 conformance
(https://gcc.gnu.org/wiki/Fortran2008Status) and we really have only a few items
missing. One in particular is: "Data statement restrictions lifted”.
Quoting the document:
Subscripts and nested implied-do limits in a data statement can be any constant
expression instead of being limited to combinations of constants, implied-do
variables, and intrinsic operations.
Unless I misunderstand this quote, I think we have that already. Maybe we
always had that? I have run the attached test program, which uses non-trivial
constant expressions, and it passes fine.
So I plan to add that to our testsuite, and change the wiki. But I would like
someone else to confirm: do you understand this the same way I do? Do you have ideas
of other ways to test it, tricky expressions, etc? Are there other ways that
"Subscripts and nested implied-do limits” may appear in a DATA statement?
There is a meta-bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33056
and in particular one PR about vector subscripts:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49588
This one gives an ICE:
f951: internal compiler error: TODO: Vector sections in data statements
Thanks,
FX