Incorrect error about symbol redeclaration after "extern" declaration #215

Closed
mmp opened this Issue Mar 28, 2012 · 0 comments

1 participant

@mmp
Collaborator

This program:

extern int a;
int a;

Causes this error to be issue:

bug.ispc:3:5: Error: Ignoring redeclaration of symbol "a". 
int a;
    ^
@mmp mmp pushed a commit that referenced this issue Mar 28, 2012
Matt Pharr Fix global variable code to correctly handle extern declarations.
When we have an "extern" global, now we no longer inadvertently define
storage for it.  Further, we now successfully do define storage when we
encounter a definition following one or more extern declarations.

Issues #215 and #217.
5b2d43f
@mmp mmp closed this Mar 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment