Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

mmp opened this Issue · 0 comments

1 participant

Matt Pharr
Matt Pharr

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;
Matt Pharr mmp referenced this issue from a commit
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.
Matt Pharr mmp closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.