<< Back to previous view

[PCC-221] float restrict f; accepted Created: 24/Jan/11  Updated: 18/Sep/14

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

Type: Bug Priority: Minor
Reporter: Fred J. Tydeman Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: Intel Pentium 4m (32-bit mode), Linux Fedora Core 14, pcc 0.9.9 of 2010/11/19

Invalid code is accepted:

int main(void){
  float restrict f; /* An invalid declration */
  return 0;

Comment by Anders Magnusson [ 30/Jan/11 11:04 AM ]
restrict is currently ignored. To handle it correctly needs a bunch of internal changes that will occur after 1.0.
Comment by Anders Magnusson [ 03/May/14 05:12 PM ]
Now parsing of restrict should be correct.
Comment by Iain Hibbert [ 08/Sep/14 10:44 PM ]
I have added a test for this, but it fails..
Comment by Anders Magnusson [ 09/Sep/14 10:37 AM ]
Now fixed (again). Result of accidentally removed code.
Comment by Anders Magnusson [ 09/Sep/14 10:42 AM ]
Eh, wrong ticket, reopen again.
Comment by Anders Magnusson [ 18/Sep/14 08:24 PM ]
And now fixed again :-)
Generated at Sat Oct 21 12:28:42 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.