This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38913] Fortran does not set TYPE_CANONICAL properly
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2009 13:39:33 -0000
- Subject: [Bug fortran/38913] Fortran does not set TYPE_CANONICAL properly
- References: <bug-38913-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from rguenther at suse dot de 2009-06-04 13:39 -------
Subject: Re: Fortran does not set TYPE_CANONICAL
properly
On Thu, 4 Jun 2009, burnus at gcc dot gnu dot org wrote:
> ------- Comment #11 from burnus at gcc dot gnu dot org 2009-06-04 12:51 -------
> (In reply to comment #10)
> > That hack is already gone ... ;)
> The truck hack yes, the question is whether one can also do something about the
> following? Or is this a wider problem?
>
> /* ??? Array types are not properly unified in all cases as we have
> spurious changes in the index types for example. Removing this
> causes all sorts of problems with the Fortran frontend. */
> if (TREE_CODE (type1) == ARRAY_TYPE
> && TREE_CODE (type2) == ARRAY_TYPE)
> return -1;
It's a wider problem. It's char[1:1] vs. char where the FE is
very inconsistent, also char[1:] vs. char[1:1], etc.
Probably not worth fixing. Maybe after everything else is ...
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38913