fix Issue 10498 - `__traits(compiles, ...)` affect program behaviour