Issue Details (XML | Word | Printable)

Key: PCC-221
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Anders Magnusson
Reporter: Fred J. Tydeman
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

float restrict f; accepted

Created: 24/Jan/11 01:05 AM   Updated: 18/Sep/14 08:24 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: Intel Pentium 4m (32-bit mode), Linux Fedora Core 14, pcc 0.9.9 of 2010/11/19

 Description  « Hide
Invalid code is accepted:

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

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 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.

Anders Magnusson added a comment - 03/May/14 05:12 PM
Now parsing of restrict should be correct.

Iain Hibbert added a comment - 08/Sep/14 10:44 PM
I have added a test for this, but it fails..

Anders Magnusson added a comment - 09/Sep/14 10:37 AM
Now fixed (again). Result of accidentally removed code.

Anders Magnusson added a comment - 09/Sep/14 10:42 AM
Eh, wrong ticket, reopen again.

Anders Magnusson added a comment - 18/Sep/14 08:24 PM
And now fixed again :-)