Bug 20146 - internal compiler error on equivalence
Summary: internal compiler error on equivalence
Status: RESOLVED DUPLICATE of bug 17917
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on: 17917
Blocks: 20405
  Show dependency treegraph
 
Reported: 2005-02-22 16:18 UTC by Dale Ranta
Modified: 2005-03-12 00:14 UTC (History)
1 user (show)

See Also:
Host: powerpc-apple-darwin7.8.0
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-02-22 17:15:48


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Ranta 2005-02-22 16:18:18 UTC
It does not like this construction -

[dranta:~/tests/gfortran] dir% gfortran -o common common.f90
common.f90:0: internal compiler error: backend decl for module variable pc
already exists
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[dranta:~/tests/gfortran] dir% cat  common.f90
       module define_kind
       integer, parameter :: REAL8 = SELECTED_REAL_KIND(12)
       real(real8) :: den , pc , pl , psi
       equivalence (den,pl)
       equivalence (psi,pc)
       end module define_kind
       program main
       stop
       end
Comment 1 Andrew Pinski 2005-02-22 17:15:48 UTC
Confirmed, related to PR 17917.
Comment 2 Tobias Schlüter 2005-03-12 00:14:57 UTC

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