[Bug fortran/21104] Segmentation fault on correct code

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Apr 23 16:47:00 GMT 2005


------- Additional Comments From pault at gcc dot gnu dot org  2005-04-23 16:47 -------
It is my belief that this is correct code, after all.

An explicit interface is REQUIRED to invoke a procedure with a pointer or 
target dummy argument or a pointer function result. 

In other circumstances it is advised, as good practice.

Here the compiler can resolve the interface because the result has explicit 
shape.  It should therefore be able to deal with it and produce executable 
code.  At very least, it should emit a message demanding an explicit interface 
and give in gracefully.

PS Andrew, for someone who claims not to know fortran, you seem to get into 
some of its murkier corners!  We'll have you writing fortran code yet...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-23 16:47:32
               date|                            |


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



More information about the Gcc-bugs mailing list