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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-11-01
                 CC|                            |janus at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org ---
This variant gives the correct error:

MODULE mymod
CONTAINS
  FUNCTION create_sort_range(b) result(r)
    TYPE(mytype) :: r
    INTEGER b
    r%b = b
  END FUNCTION create_sort_range
END MODULE mymod



c0.f90:4.16:

    TYPE(mytype) :: r
                1
Error: Derived type 'mytype' at (1) is being used before it is defined
c0.f90:6.6:

    r%b = b
      1
Error: Symbol 'r' at (1) has no IMPLICIT type



The segfault happens at least with 4.8 and trunk (haven't tried other
versions).

Reply via email to