This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33343] ICE (segfault) on invalid code with wrongly shaped arguments to elemental procedures
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2007 21:26:36 -0000
- Subject: [Bug fortran/33343] ICE (segfault) on invalid code with wrongly shaped arguments to elemental procedures
- References: <bug-33343-14266@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2007-09-12 21:26 -------
"12.7.2 Elemental function actual arguments and results
[...] For those elemental functions that have more than one argument, all
actual arguments shall be conformable."
"conformable (2.4.5) : Two arrays are said to be conformable if they have the
same shape. A scalar is conformable with any array."
We should probably add such a check to interface.c's compare_actual_formal.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33343