[Bug fortran/55735] ICE with deferred-length strings in COMMON

juergen.reuter at desy dot de gcc-bugzilla@gcc.gnu.org
Thu May 2 08:31:00 GMT 2019


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

--- Comment #11 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Jürgen Reuter from comment #10)
> Interestingly, nagfor rejects this code with the message "Inconsistent
> definitions of COMMON block FOO in program-units $block and BAR". Both ifort
> and pgfortran compile the code, and the program issues 'ABCDEF' upon
> execution. 
> ifort warns however: warning #5436: Overlapping storage initializations
> encountered with STR.

Replying to myself :( ...
I asked on c.l.f. whether the code is conformant at all. I think, fixing the
ICE is probably not too hard (?).


More information about the Gcc-bugs mailing list