public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/60322] New: Incorrect bounds on polymorphic dummy array
@ 2014-02-23  3:00 Thomas.L.Clune at nasa dot gov
  2014-02-23 10:51 ` [Bug fortran/60322] [OOP] " janus at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Thomas.L.Clune at nasa dot gov @ 2014-02-23  3:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60322

            Bug ID: 60322
           Summary: Incorrect bounds on polymorphic dummy array
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Thomas.L.Clune at nasa dot gov

Created attachment 32202
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32202&action=edit
Simple complete program should print that the lower bound is 0, but reports
"1".

The attached reproducer shows that the bounds are incorrect for a polymorphic
dummy argument when an array constructor is passed as the actual argument.  If
an actual array variable is passed, the behavior is correct.

This seems simple enough that I was sure there would be a bug report, but the
few that I found that were at least in this direction were not obviously the
same, and this reproducer is much simpler in any event.

Fails on Mac OS X 10.8.5 with 
GNU Fortran (MacPorts gcc47 4.7.3_3) 4.7.3
GNU Fortran (MacPorts gcc48 4.8.2_0+universal) 4.8.2
GNU Fortran (GCC) 4.9.0 20140103 (experimental)


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

end of thread, other threads:[~2015-09-12 23:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-23  3:00 [Bug fortran/60322] New: Incorrect bounds on polymorphic dummy array Thomas.L.Clune at nasa dot gov
2014-02-23 10:51 ` [Bug fortran/60322] [OOP] " janus at gcc dot gnu.org
2014-02-23 11:21 ` janus at gcc dot gnu.org
2014-02-23 11:28 ` janus at gcc dot gnu.org
2014-03-13 22:41 ` dominiq at lps dot ens.fr
2015-01-20 16:53 ` antony at cosmologist dot info
2015-01-21 13:32 ` vehre at gmx dot de
2015-01-23 11:14 ` vehre at gcc dot gnu.org
2015-01-29 10:32 ` vehre at gcc dot gnu.org
2015-04-23 11:32 ` vehre at gcc dot gnu.org
2015-04-27 17:41 ` vehre at gcc dot gnu.org
2015-05-04 15:11 ` vehre at gcc dot gnu.org
2015-05-10 13:40 ` mikael at gcc dot gnu.org
2015-09-12 23:34 ` dominiq at lps dot ens.fr

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).