fortran/6491: Logical operations error on logicals when using -fugly-logint
aurag@cae.com
aurag@cae.com
Sat Apr 27 20:16:00 GMT 2002
>Number: 6491
>Category: fortran
>Synopsis: Logical operations error on logicals when using -fugly-logint
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 27 14:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Hassan Aurag
>Release: gcc version 2.95.1 19990816 (release)/GNU Fortran 0.5.25 19990816 (release)
>Organization:
>Environment:
Linux ibdu 2.2.12-20 #1 Fri Sep 29 07:29:24 EDT 2000 i686 unknown(RedHat 6.1)
>Description:
Doing parallel byte operations with and's, or's fails to run correctly when using --fugly-logint.
The file below is good example of how a.and.b works differently from and(a,b)
Please compile example with g77 -fugly-logint
>How-To-Repeat:
Just compile file with -fugly-logint and run to see difference between 2 outputs.
>Fix:
I have no idea, except that .and. should behave as and(.,.) in my opinion. But I am no expert.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ands1.f"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ands1.f"
ICAgICAgICBwcm9ncmFtIHBhcmFsbGVsDQogICAgICAgIGxvZ2ljYWwqNCBsNCwgbGw0DQogICAg
ICAgIGxvZ2ljYWwqMSBsMSg0KSwgbGwxKDQpDQogICAgICAgIGxvZ2ljYWwqNCB0cnVlIC9YJzAx
MDEwMTAxJy8NCiAgICAgICAgaW50ZWdlciBpDQogICAgICAgIGVxdWl2YWxlbmNlKGwxLCBsNCks
IChsbDEsIGxsNCkNCkMgICAgIFNldHRpbmcgZmlyc3QgYW5kIHRoaXJkIGVsZW1lbnRzIG9mIGxv
Z2ljYWwqNCB0byB0cnVlDQogICAgICAgIGxsMSgxKSA9IC50cnVlLg0KICAgICAgICBsbDEoMykg
PSAudHJ1ZS4NCkMgICAgIFVzaW5nIG5vcm1hbCAuYW5kLiBvcGVyYXRvcg0KICAgICAgICBsNCA9
IGxsNCAuYW5kLiB0cnVlDQoNCiAgICAgICAgZG8gaSA9MSwgNA0KICAgICAgICAgICAgICAgIHBy
aW50ICosIGwxKGkpDQogICAgICAgIGVuZGRvDQpDICAgICBOb3cgdXNpbmcgYW5kKC4sLikgb3Bl
cmF0b3IuIFRoZSBzYW1lIGFwcGxpZXMgZm9yIE9SL1hPUiAuLi4NCglsNCA9IGFuZChsbDQsIHRy
dWUpDQogICAgICAgIGRvIGkgPTEsIDQNCiAgICAgICAgICAgICAgICBwcmludCAqLCBsMShpKQ0K
ICAgICAgICBlbmRkbw0KDQogICAgICAgIGVuZA0KICAgICAgIA0KDQogICAgICAgIA0K
More information about the Gcc-bugs
mailing list