<< Back to previous view

[PCC-286] pcc does not raise error for const modifications Created: 24/Mar/11  Updated: 27/Mar/11

Status: In Progress
Project: pcc
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

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

the following code fragment

void foo(void)
        const char str[] = "bar";
        const int num = 31;

        str[1] = 0;
        num = 5;

really ought to fail compilation, but it does not

Comment by Anders Magnusson [ 27/Mar/11 05:16 PM ]
This is well-known, and needs a bunch of internal changes to work, so const is currently not supported.
Generated at Wed Apr 25 03:10:54 CEST 2018 using JIRA Enterprise Edition, Version: 3.13.1-#333.