This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37926] Program gives wrong output (connected to char len)
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2008 22:19:10 -0000
- Subject: [Bug fortran/37926] Program gives wrong output (connected to char len)
- References: <bug-37926-16146@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2008-10-27 22:19 -------
Confirm. Works also with NAG f95 and ifort; does not compile with openf95, ICEs
with sunf95 and gfortran 4.1/4.2.
D.1627 = mysize (D.1625);
[...]
D.1650 = MAX_EXPR <D.1627, 0>;
p (pstr.23, D.1650, D.1616, mysize);
D.1632 = MAX_EXPR <D.1627, 0>;
if (D.1632 > 2) goto <D.1651>; else goto <D.1652>;
I don't understand the dump. Why is D.1627 and not D.1650 used for D.1532? Any
why is there is "D.1650 = MAX_EXPR <D.1627, 0>;" for the result variable. It
probably does not harm, but it does not make sense either. (Still, I don't see
why D.1532 is (presumably) "1" and not "3".)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |32834
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-10-27 22:19:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37926