Opened 4 years ago

Closed 4 years ago

#14 closed defect (fixed)

Parsing error with multiple generic forward declarations

Reported by: Rob Schluntz Owned by: pabuhr
Priority: major Component: cfa-cc
Version: 1.0 Keywords: parsing generic types forward declaration multiple
Cc:

Description

Multiple forward declarations of a generic type cause parsing conflicts.

forall(otype T) struct Box;
forall(otype T) struct Box;

$ cfa test.c 
CFA Version 1.0.0 (debug)
Error in file test.c at line 2 reading token ";"

Change History (1)

comment:1 Changed 4 years ago by pabuhr

Resolution: fixed
Status: assignedclosed

Fixed by adding TYPEGENname to typegen_name, and fixing shift/reduce in favour of shift.

Note: See TracTickets for help on using tickets.