[Bug fortran/50379] ICE in gfc_typenode_for_spec at fortran/trans-types.c

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 13 10:57:00 GMT 2011


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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-09-13
     Ever Confirmed|0                           |1

--- Comment #2 from janus at gcc dot gnu.org 2011-09-13 10:39:40 UTC ---
Note: We get the correct error message (twice, unfortunately) for:

  function f() result(res)
    interface res
      subroutine sub
      end subroutine
    end interface
  end 


  function f() result(res)
                          1
Error: PROCEDURE attribute conflicts with RESULT attribute in 'res' at (1)



but not when the interface is empty:

    interface res
    end interface



More information about the Gcc-bugs mailing list