This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55735] ICE with deferred-length strings in COMMON
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Dec 2012 20:04:12 +0000
- Subject: [Bug fortran/55735] ICE with deferred-length strings in COMMON
- Auto-submitted: auto-generated
- References: <bug-55735-4@http.gcc.gnu.org/bugzilla/>
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.