Issue Details (XML | Word | Printable)

Key: PCC-284
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

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

cannot cast _Bool to a pointer

Created: 23/Mar/11 11:36 PM   Updated: 27/Mar/11 05:15 PM
Component/s: pcc backend
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386


 Description  « Hide
 the following code fragment:

void *foo(_Bool a)
{
        return (void *)a;
}

when compiled with "pcc -c" fails with

line 3: compiler error: Cannot generate code, node 0xbb9017f4 op PCONV

(not sure if an i386 or generic issue, this does seem to be handled in arch code)

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 27/Mar/11 05:15 PM
Not that I can understand why someone would like to do this, but now it's fixed, thanks.