bugDotGNU Portable.NET - Bugs: bug #6937, trecc generates C code with syntax...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #6937: trecc generates C code with syntax error

Submitter:  Miroslaw Dobrzanski-Neumann <miroslaw>
Submitted:  Tue 02 Dec 2003 10:39:38 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Tue 02 Dec 2003 11:17:18 PM UTC, comment #1: 

Patch applied - 3 Dec 2003 - thanks.

Rhys Weatherley <rweather>
Group administrator
Tue 02 Dec 2003 10:39:38 PM UTC, original submission:  

enum { a, b, } is erronous

because "}" may not be folowed by ","

gcc relaxes the check and accepts it but not other ansi C compilers.

the attached patch fixes the problem

Miroslaw Dobrzanski-Neumann <miroslaw>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #906:  treecc-0.2.6-enum.diff added by miroslaw (844B - application/octet-stream - patch for enum generation)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-12-02 rweather StatusNone Fixed
    Open/ClosedOpen Closed
2003-12-02 miroslaw Attached File- Added treecc-0.2.6-enum.diff, #900

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code