This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55172] [4.7 only] [OOP] gfc_variable_attr(): Bad array reference in SELECT TYPE
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 Jan 2013 07:52:31 +0000
- Subject: [Bug fortran/55172] [4.7 only] [OOP] gfc_variable_attr(): Bad array reference in SELECT TYPE
- Auto-submitted: auto-generated
- References: <bug-55172-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55172
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.8.0 |4.7.3
AssignedTo|pault at gcc dot gnu.org |unassigned at gcc dot
| |gnu.org
Summary|[4.7/4.8 Regression] [OOP] |[4.7 only] [OOP]
|ICE on invalid: |gfc_variable_attr(): Bad
|gfc_variable_attr(): Bad |array reference in SELECT
|array reference |TYPE
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> 2013-01-05 07:52:31 UTC ---
I tried the best I could with 4.7 but there are quite significant divergences
with trunk, both around and downstream from the patch. The best that I could
manage was:
/svn/gcc-4_7-branch/gcc/testsuite/gfortran.dg/select_type_31.f03:16.4:
select type (component => self%cb(i) ! { dg-error "has no IMPLICIT type" }
1
Error: Unclassifiable statement at (1)
/svn/gcc-4_7-branch/gcc/testsuite/gfortran.dg/select_type_31.f03:17.7:
end select
1
Error: Expecting END FUNCTION statement at (1)
which is more opaque than the correct error followed by the internal error!
I decided, therefore, to leave the PR as 4.7 only and have unassigned myself.
In addition, I think that to call it a regression is incorrect since
polymorphic arrays were unavailable in 4.6! I have therefore removed
regression from the title.
I might be persuaded to return to this, once 4.8 is released.
Paul