This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/12633] logical expression gives incorrect result with -fugly-logint option
- From: "bdavis9659 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2003 02:56:12 -0000
- Subject: [Bug fortran/12633] logical expression gives incorrect result with -fugly-logint option
- References: <20031016070652.12633.dwyatt@kohlmansystems.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12633
------- Additional Comments From bdavis9659 at comcast dot net 2003-10-28 02:56 -------
It looks like all logical expressions were broken by this patch (with the
-fugly-logint option).
IMHO, -fugly-logint should allow one to intermix logicals and integers in
assignments but it should not change the meaning of the logical operators
(.AND., .OR., etc.)
<logical> .AND. <logical>
should work the same without regard to the compiler option.
Suggest that the patch be reverted.
The problem mentioned in http://gcc.gnu.org/ml/gcc-patches/2002-05/msg00686.html
could also be corrected by changing the LOGICAL declaration to INTEGER { for
l4,ll4, and true }
g77 -fugly-logint handles
<integer> .AND. <integer>
in exactly the way desired.
regards,
bud davis