This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33759] Unequal character lengths in MERGE intrinsic not detected at run time
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2007 15:34:55 -0000
- Subject: [Bug fortran/33759] Unequal character lengths in MERGE intrinsic not detected at run time
- References: <bug-33759-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pault at gcc dot gnu dot org 2007-11-12 15:34 -------
(In reply to comment #7)
> A peculiar feature of this failure is that 'i' can be changed to INTEGE(1,2,8)
> and the test succeeds at any level of optimisation. It is only at the default
> logical length that it fails!
> Puzzled
For -O1 and above, .true. == 1_defaultint, whereas it is .true. ==
>0_defaultint for no optimization. Try setting ip1 to 1.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33759