This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66927] [6.0 regression] ICE in gfc_conf_procedure_call
- From: "vehre at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 18 Jul 2015 09:58:11 +0000
- Subject: [Bug fortran/66927] [6.0 regression] ICE in gfc_conf_procedure_call
- Auto-submitted: auto-generated
- References: <bug-66927-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
--- Comment #3 from vehre at gcc dot gnu.org ---
F2008, C633 says:
(R631) If allocate-object is an array either allocate-shape-spec-list shall
appear or source-expr shall appear and have the same rank as allocate-object.
If allocate-object is scalar, allocate-shape-spec-list shall not appear.
So you can fix your code, by removing the array-description from the object to
allocate. I am aware, that this kind of code is motivated by former gfortran
not being able to take the array-spec from the source= expression. But now it
is.