This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]