gcc: add patch for noexcept declarations (#34964)

There are some declarations that need to be declared noexcept for
valarray. This affects gcc 9.5:11.2.
This commit is contained in:
Glenn Johnson 2023-01-17 01:58:45 -06:00 committed by GitHub
parent e253184886
commit a72a3fb2e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -462,6 +462,13 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
patch("patch-fc930b3010bd0de899a3da3209eab20664ddb703.patch", when="@10.1:10.3")
patch("patch-f1feb74046e0feb0596b93bbb822fae02940a90e.patch", when="@11.1")
# libstdc++: Fix inconsistent noexcept-specific for valarray begin/end
patch(
"https://github.com/gcc-mirror/gcc/commit/423cd47cfc9640ba3d6811b780e8a0b94b704dcb.patch?full_index=1",
sha256="0d136226eb07bc43f1b15284f48bd252e3748a0426b5d7ac9084ebc406e15490",
when="@9.5.0:11.2",
)
build_directory = "spack-build"
@classproperty