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)