Implement location overlap error checking.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24376 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
2f15597a7e
commit
0b39137009
13 changed files with 146 additions and 12 deletions
|
|
@ -2649,6 +2649,10 @@ void TParseContext::layoutTypeCheck(TSourceLoc loc, const TSymbol& symbol)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
int repeated = intermediate.addUsedLocation(qualifier, type);
|
||||
if (repeated >= 0)
|
||||
error(loc, "repeated use of location", "location", "%d", repeated);
|
||||
}
|
||||
|
||||
if (qualifier.hasBinding()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue