blob: 0eea24f9e85e59fb7737948ac9a14ffd636efdc0 [file] [log] [blame]
// PR c++/93862 - ICE with static_cast when converting from int[].
// { dg-do compile { target c++11 } }
int(&&intu_rvref)[]{1,2,3,4};
int(&int4_lvref)[4] = static_cast<int(&)[4]>(intu_rvref); // { dg-error "invalid .static_cast." }
int(&&int4_rvref)[4] = static_cast<int(&&)[4]>(intu_rvref); // { dg-error "invalid .static_cast." }