<< Back to previous view

[PCC-397] compiler error: no * in PLUS Created: 08/Aug/12  Updated: 30/Aug/12

Status: Resolved
Project: pcc
Component/s: C frontend, Common code, i386 target
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Iain Hibbert Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: NetBSD/i386

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

Comment by Anders Magnusson [ 30/Aug/12 09:46 PM ]
Fixed by removing some confusing target-dependent casts.
Generated at Thu Oct 19 07:31:52 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.