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

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 18 20:04:00 GMT 2012


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

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-12-18 20:04:12 UTC ---
(In reply to comment #2)
> (In reply to comment #1)
> > Postscript: The example in comment 0 mixes a scalar and an array pointers.
> > While the ICE occurs with either, the declaration should be consistent.
>
> I could be wrong, but I believe that the program in comment 0
> is invalid.

Mixing scalars and arrays is invalid. But as written, the same ICE occurs if
one has only arrays or only scalars (which I intended but didn't post). And do
I believe the program(s) is (are) valid in that case.


> I doubt that it is possible to catch the rank mismatch

Well, the compiler does warn that the named common blocks have a different
size.



More information about the Gcc-bugs mailing list