<< Back to previous view

[PCC-326] ulli < slli done wrong Created: 19/Apr/11  Updated: 26/Apr/11

Status: Closed
Project: pcc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Fred J. Tydeman Assignee: Unassigned
Resolution: Fixed Votes: 0
Environment: Intel Pentium 4; Linux Fedora Core 14 (32-bit); pcc of 2011/04/01


 Description   
Code similar to:

static signed long long int slli = 1LL;
static unsigned long long int ulli = 1uLL;
int main(void){
  int res = ulli < slli ;
  if( res ) puts("Bad");
  return 0;
}

gets the wrong value from the '<' compare.

 Comments   
Comment by Fred J. Tydeman [ 20/Apr/11 05:17 PM ]
After more debugging, the real problem is a store into a bit-field of a struct that was just before slli was altering memory outside of the struct (slli in this case).
So, this could be closed as a dup of a previous bug.
Generated at Tue Sep 30 19:58:29 CEST 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.