Issue Details (XML | Word | Printable)

Key: PCC-368
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

casting string -> int -> long long causes compiler error

Created: 05/Jul/11 11:13 AM   Updated: 06/Jul/11 10:33 AM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386


 Description  « Hide
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

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 06/Jul/11 10:33 AM
It was a sanity test that was missing a check for maned constants that caused this.