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

           Summary: ICE (segfault) with
                    gfortran.dg/derived_constr_func_1.f90
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: bur...@gcc.gnu.org


The ICE is in the following line of gfc_use_derived
  if (sym->components != NULL || sym->attr.zero_comp)

valgrind outputs the following. I checked with GCC 4.4 and 4.5 that those also
ICE.


[...]
gfortran.dg/derived_constr_func_1.f90:14.11:

  type(foo) function constructor()
           1
Error: PROCEDURE attribute of 'foo' conflicts with DERIVED attribute at (1)
==27731== Invalid read of size 8
==27731==    at 0x549D99: gfc_use_derived (symbol.c:1934)
==27731==    by 0x5214FA: match_variable (primary.c:3043)
==27731==    by 0x5062E4: gfc_match (match.c:1115)
==27731==    by 0x50706A: gfc_match_assignment (match.c:1292)
==27731==    by 0x5188D9: match_word (parse.c:65)

Reply via email to