This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20244] internal compiler error: in fold_convert, at fold-const.c:2003
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Dec 2005 12:50:10 -0000
- Subject: [Bug fortran/20244] internal compiler error: in fold_convert, at fold-const.c:2003
- References: <bug-20244-10180@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from paul dot richard dot thomas at cea dot fr 2005-12-13 12:50 -------
I am just now posting a patch for this bug.
Andrew,
I ignored your advice, "All of the above need to be fixed in the front-end and
not in the middle-end where fold_convert resides." by doing the fixing in the
middle end. I found that a front-end fix, in resolve_symbol, got more than a
little bit cumbersome. The simplest, by far, was to attack
trans-types(gfc_get_derived_type) and to use the host + use associated backend
declarations for the derived type, rather than building afresh in the contained
namespace.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20244