Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
mmp opened this Issue · 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 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.
5b2d43f
@mmp 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.