AaronGhost/glslsmith-bugs-tracker

Compilation error with llvmpipe on an atypical switch

AaronGhost opened this issue · 1 comments

Description

The following code containing an useless switch doesn't compile with llvmpipe.

#version 450
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main()
{
 switch(1u)
  {
   case 2u:
   bvec2 var_0 = bvec2(true);
  }
 ivec4 var_0[4] = ivec4[4](ivec4(1), ivec4(1), ivec4(1), ivec4(1));
}

LLVMPipe doesn't compile the shader an report an error saying that var_0 is already defined.

Code link

For the related code in the shadertrap test format, see: llvmpipe/crashes/shader13.shadertrap