<< 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


 Description   
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

 Comments   
Comment by Anders Magnusson [ 30/Aug/12 09:46 PM ]
Fixed by removing some confusing target-dependent casts.
Generated at Mon Sep 01 20:46:03 CEST 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.