Issue Details (XML | Word | Printable)

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

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

compiler error: no * in PLUS

Created: 08/Aug/12 09:20 PM   Updated: 30/Aug/12 09:46 PM
Component/s: C frontend, Common code, i386 target
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386

 Description  « Hide
compiling the following test code

void *foo(int a)
        return (char *)0 + ( a + 1 );

fails with pcc; producing

  foo.c, line 3: compiler error: no * in PLUS

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 30/Aug/12 09:45 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson added a comment - 30/Aug/12 09:46 PM
Fixed by removing some confusing target-dependent casts.

Anders Magnusson made changes - 30/Aug/12 09:46 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]