Bug 48428 - [OOP] ICE at mio_component_ref() / free_pi_tree() - module read issues?
Summary: [OOP] ICE at mio_component_ref() / free_pi_tree() - module read issues?
Status: RESOLVED DUPLICATE of bug 47601
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
URL:
Keywords: ice-on-valid-code
Depends on: 47601
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-03 19:30 UTC by Kris
Modified: 2011-04-04 12:54 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
reduced program fortran code that triggers the internal error (354 bytes, text/x-fortran)
2011-04-03 19:30 UTC, Kris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kris 2011-04-03 19:30:11 UTC
Created attachment 23864 [details]
reduced program fortran code that triggers the internal error

I have reduced a fortran program to the attached test case that triggers the following internal error:

$ gfortran mio_component_ref_error.f90
mio_component_ref_error.f90:45.41:

    use elliptical_elements, only : line 
                                         1
Internal Error at (1):
mio_component_ref(): Component not found

This happens using gfortran 4.5.1, 4.6.0, and the trunk build from yesterday (4.7).  

The error goes away if you copy the line() function from the elliptical_elements module into the the solution_mod module and comment out the use statement on line 45.

Maybe this bug is related to bug 47601?  I am experiencing this problem in 64-bit Ubuntu Linux.

--

I don't know if the following tidbit helps, but while I was cutting the program down to this test case, I briefly experienced the following different error at the same location when I eliminated some of the extends() dependencies of one type on another in the type_definitions module.  I can't seem to reproduce this different error anymore, though.

gfortran -c  -o solution.o solution.f90
solution.f90:10.41:

    use elliptical_elements, only : line 
                                         1
Internal Error at (1):
free_pi_tree(): Unresolved fixup
Comment 1 Dominique d'Humieres 2011-04-04 09:36:03 UTC
This pr looks like a duplicate of pr47601.
Comment 2 Mikael Morin 2011-04-04 12:54:15 UTC
(In reply to comment #0)
> I don't know if the following tidbit helps, but while I was cutting the program
> down to this test case, I briefly experienced the following different error at
> the same location when I eliminated some of the extends() dependencies of one
> type on another in the type_definitions module.  I can't seem to reproduce this
> different error anymore, though.
> 
> gfortran -c  -o solution.o solution.f90
> solution.f90:10.41:
> 
>     use elliptical_elements, only : line 
>                                          1
> Internal Error at (1):
> free_pi_tree(): Unresolved fixup

This is PR47546, which was closed after the error reported vanished.
Can you reopen it and provide a case triggering it if you can reproduce again?

(In reply to comment #1)
> This pr looks like a duplicate of pr47601.
Indeed, and the testcase matches the same pattern (use-associated extended derived-type component needed in function interface).

*** This bug has been marked as a duplicate of bug 47601 ***