This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33455] MERGE intrinsic: Check for same string lengths
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2007 11:16:36 -0000
- Subject: [Bug fortran/33455] MERGE intrinsic: Check for same string lengths
- References: <bug-33455-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-09-20 11:16 -------
I think the primary.c patchlet could mess up with more than diagnostics: the
difference between expr->ts.cl->length etc. and expr->value.character.length is
used in quite a few places in the front-end, I think.
Why not having a gfc_check_same_length() helper function that would look at
both expr->ts.cl->length etc. and expr->value.character.length to handle all
three cases: (var,var), (parameter,parameter) and (var,parameter)?
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2007-09-20 11:16:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33455