Split off from PR 35040 comment 5. The following program gives now an ICE:

 function foo(x)
   character(len=len(x)) :: foo,x
 end function foo

With 4.3 there is no ICE, but with 4.4 there is an ICE after the (new!) error
detection. ("len(x)... :: x" is invalid.)

Valgrind shows a huge number of invalid reads.


-- 
           Summary: [4.4 Regression] ICE segfault for "character(len=len(x))
                    :: foo,x"
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to