<< Back to previous view

[PCC-368] casting string -> int -> long long causes compiler error Created: 05/Jul/11  Updated: 06/Jul/11

Status: Resolved
Project: pcc
Component/s: C frontend
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   
The following code example

void foo(void)
{
        (long long) (int) "FOO";
}

when compiled with pcc causes a compiler error

  line 3: compiler error: SCONV ICON

 Comments   
Comment by Anders Magnusson [ 06/Jul/11 10:33 AM ]
It was a sanity test that was missing a check for maned constants that caused this.
Generated at Mon Dec 22 13:47:55 CET 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.