Re: [Mesa-dev] [PATCH] glsl: Add single declaration variables to the symbol table too.

2016-03-04 Thread Timothy Arceri
On Fri, 2016-03-04 at 21:11 -0800, Kenneth Graunke wrote: > The lexer/parser use a symbol table to classify identifiers as > variables, functions, or structure types. > > For some reason, we neglected to add variables in simple declarations > such as > > int x = 5; > > but did add subsequent

[Mesa-dev] [PATCH] glsl: Add single declaration variables to the symbol table too.

2016-03-04 Thread Kenneth Graunke
The lexer/parser use a symbol table to classify identifiers as variables, functions, or structure types. For some reason, we neglected to add variables in simple declarations such as int x = 5; but did add subsequent variables in multi-declarations: int x = 5, y = 6; // y gets added, bu