public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45756]  New: Multiple DECL for array valued PARAMETER (-fwhole-file issue)
@ 2010-09-23  9:57 burnus at gcc dot gnu dot org
  2010-09-23 10:00 ` [Bug fortran/45756] " burnus at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-09-23  9:57 UTC (permalink / raw)
  To: gcc-bugs

Currently, gfc_get_symbol_decl only deals with -fwhole-file issues of module
variable (FL_VARIABLE( but not with array-valued (or non-intrinsic-type)
parameters (FL_PARAMETER).

Thus, for the following program, multiple UIDs will be generated for the
program below:

module m
  integer, parameter :: para(3) = [1, 2, 3]
end module m

subroutine one
  use m
  i = para(1)
end subroutine one

subroutine two
  use m
  j = para(1)
end subroutine two


-fdump-tree-original-uid shows:

  extern integer(kind=4)D.8 paraD.1556[3];
  extern integer(kind=4)D.8 paraD.1561[3];


-- 
           Summary: Multiple DECL for array valued PARAMETER (-fwhole-file
                    issue)
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: wrong-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=45756


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-28 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45756-4@http.gcc.gnu.org/bugzilla/>
2010-09-28 18:22 ` [Bug fortran/45756] Multiple DECL for array valued PARAMETER (-fwhole-file issue) burnus at gcc dot gnu.org
2010-09-28 18:27 ` burnus at gcc dot gnu.org
2010-09-23  9:57 [Bug fortran/45756] New: " burnus at gcc dot gnu dot org
2010-09-23 10:00 ` [Bug fortran/45756] " burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).