fb39ca4 / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

When using function prototypes containing struct references the error " ; expected" occurs. #181

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Running this code will produce the error " ; expected"

typedef struct {
    int i;
} s1;

s1 * test(void);

What is the expected output? What do you see instead?
I expect no error.

What version of the product are you using? On what operating system?
Windows 7 64bit,   release 2.1

Please provide any additional information below.
I realize a prototype is not needed in interpreted c, however am trying to use 
ported c code containing many prototypes.  Would be nice if this did not 
produce an error so file modification is not necessary.  I can fix by changing 
the last line to this:
s1 * test(void);;      

Original issue reported on code.google.com by ajbaaj...@gmail.com on 9 May 2013 at 2:29