Issue Details (XML | Word | Printable)

Key: PCC-346
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Nicolas Joly
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

compiler error: allo: too many allocs

Created: 09/May/11 07:50 PM   Updated: 10/May/11 10:21 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

NetBSD 5.99.51 NetBSD 5.99.51 (LANFEUST) #46: Mon May 9 11:21:30 CEST 2011 amd64
pcc 1.1.0.DEVEL 20110509 for x86_64-unknown-netbsd5.99.51,

 Description  « Hide
Conversion from float to unsigned long leads to a compiler error:

njoly@lanfeust [~]> cat convert.c
int main() {
  float f = 2.2;
  unsigned long lu = f;
  return 0; }
njoly@lanfeust [~]> pcc -o /dev/null convert.c; echo $?
convert.c, line 4: compiler error: allo: too many allocs
njoly@lanfeust [~]> gcc -o /dev/null convert.c; echo $?

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 10/May/11 10:21 PM
Fixed now, thanks. It was a check that was too narrow that caused it.