From 3015e56bcbeff638f33264ec08b8c22a2cbfe312 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 23 Jan 2021 20:36:12 +0200 Subject: [PATCH] GCC bug 63707 has been fixed for GCC 11 --- include/boost/variant2/variant.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/variant2/variant.hpp b/include/boost/variant2/variant.hpp index d526dab..2409c54 100644 --- a/include/boost/variant2/variant.hpp +++ b/include/boost/variant2/variant.hpp @@ -1032,7 +1032,7 @@ template struct variant_base_impl { unsigned ix_; -#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) +#if defined(__GNUC__) && __GNUC__ < 11 && !defined(__clang__) && !defined(__INTEL_COMPILER) // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63707 :-(