glsl: Throw an error when faced with a duplicated switch() case label.
authorEric Anholt <eric@anholt.net>
Mon, 30 Jan 2012 16:50:14 +0000 (08:50 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 3 Feb 2012 10:07:02 +0000 (11:07 +0100)
commit140632190cf41e6a035ca199b181091d4ed46986
treecad868b8ac2a3ce141bcea415e057d28ce120777
parent01a5a2c9d761d4c9d72c236084efee700dcb28b8
glsl: Throw an error when faced with a duplicated switch() case label.

The error message I chose matches gcc's error.  Fixes piglit
switch-case-duplicated.vert.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser_extras.h