\bool_set:Nn
  \l_tmpa_bool
  {
    \bool_do_while:Nn  % error on this line
      \c_false_bool
      { }
    \c_true_bool
  }
