clspv icon indicating copy to clipboard operation
clspv copied to clipboard

clspv crash when switching on an enum

Open gnl21 opened this issue 4 years ago • 0 comments

Trying to compile:

typedef enum test_t
{
  NONE = 0,
  ONE  = 1
} test_t;


__kernel void switch_test ()
{
  test_t t;

  switch(t)
  {
    default:  break;
  }
}

Results in a crash:

IsSupportedType lacks support for QualType: __private test_t
Type not covered by IsSupportedType.
UNREACHABLE executed at /srv/users/gleese/vc5/clspv/lib/FrontendPlugin.cpp:255!

gnl21 avatar Feb 12 '21 15:02 gnl21