Bug 25618 - ICE with allocate on the return value of a function, character with a len of an argument
Summary: ICE with allocate on the return value of a function, character with a len of ...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on: 25597
Blocks: Fortran_character
  Show dependency treegraph
 
Reported: 2006-01-01 06:31 UTC by Andrew Pinski
Modified: 2006-04-17 15:18 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-01-29 21:02:26


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2006-01-01 06:31:18 UTC
Testcase:
FUNCTION reallocate_hnv(p,n,LEN)
  CHARACTER(LEN=LEN),  POINTER :: reallocate_hnv
   ALLOCATE(reallocate_hnv)
END FUNCTION reallocate_hnv
--------

Very much related to PR 25597.
Comment 1 Andrew Pinski 2006-01-29 21:02:26 UTC
Confirmed.
Comment 2 Paul Thomas 2006-04-17 15:18:04 UTC
Fixed on trunk and will be fixed on 4.1, when patch for PR25597 is applied next weekend.

I will close this now since its purpose is served.

Paul
Comment 3 Paul Thomas 2006-04-17 15:18:40 UTC
Fixed!