Allow future keywords to be accessed as members in a struct.

This fixes a bug where a token that could be a keyword in one version
is not a keyword in another version, but treated like a non-member after
a "." dereference.
This commit is contained in:
John Kessenich
2015-10-02 15:01:53 -06:00
parent 6373574b13
commit eb505e4262
7 changed files with 41 additions and 12 deletions

View File

@@ -140,3 +140,11 @@ void qlod()
lod = textureQueryLod(samp1D, pf); // ERROR, not until 400
lod = textureQueryLod(samp2Ds, pf2); // ERROR, not until 400
}
int precise; // okay, not a keyword yet
struct SKeyMem { int precise; } KeyMem; // okay, not a keyword yet
void fooKeyMem()
{
KeyMem.precise;
}