Re #10246. w/ openmp thows runtime_error, w/o throws invalid_argument