Diagnostics: Fix passing diagnostic state to try_compile Do not propagate deprecated diagnostic variables to try_compile. Instead, if any diagnostic is ignored in the calling instance, also ignore it in the try_compile instance.