yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Diego NovilloFix erroneous parse errors in variable declarations using existing struct names (#4005)b4e66d7b

main
426 B20 linesraw
1#version 400
2
3// Original bug report from: https://github.com/KhronosGroup/glslang/issues/3931
4// Error was: "syntax error, unexpected TYPE_NAME, expecting IDENTIFIER"
5// when defining a struct field with the same name as a previously defined
6// struct.
7struct B
8{
9    vec3 t;
10};
11
12struct K
13{
14    float A, B; // This should work. The B field is in a different scope
15		// than the B struct.
16};
17
18void main(){
19  int x, B, y, K;
20}