Bug 51733 - [OOP] No allocate on assign for class objects with allocatable components.
Summary: [OOP] No allocate on assign for class objects with allocatable components.
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.7.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Blocks: 51634
  Show dependency treegraph
Reported: 2012-01-02 13:32 UTC by Paul Thomas
Modified: 2012-01-13 21:23 UTC (History)
1 user (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Paul Thomas 2012-01-02 13:32:00 UTC
The testcase in PR51634 needs explicit allocations, as in the final comment.

PR51634 was closed, since the nesting of typebound operators is fixed.

Comment 1 Tobias Burnus 2012-01-02 14:07:17 UTC
See also the test case in PR 51634.
Comment 2 Tobias Burnus 2012-01-02 14:11:03 UTC
(Mixed up the test cases. The PR mentioned in comment 1 is the same as in comment 0 - and a good test case. I mixed it up with PR 46262 comment 3, which is a longer example which also requires allocation on assignment.)
Comment 3 Tobias Burnus 2012-01-13 21:23:03 UTC
I think the realloc issue is fixed by the commit for PR 48351.

The test case in PR51634 now kind of works. (It fails but because it is invalid.)
The big test case at PR 46262 comment 3 also works now :-)