This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/12633] logical expression gives incorrect result with -fugly-logint option


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]