Failed assertion when compiling if statement checking get_X w/o existing set_X