https://bugs.llvm.org/show_bug.cgi?id=41578

            Bug ID: 41578
           Summary: test/std/utilities/variant/variant.get/get_type.pass.c
                    pp has workaround for a non-bug
           Product: libc++
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: zi...@kayari.org
                CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

In the two tests
std/utilities/variant/variant.get/get_type.pass.cpp
std/utilities/variant/variant.get/get_index.pass.cpp
you do:

    using V = std::variant<int, const long>;
    constexpr V v(42);
#ifndef __clang__ // Avoid https://bugs.llvm.org/show_bug.cgi?id=15481
    ASSERT_NOEXCEPT(std::get<int>(v));
#endif

That isn't a Clang bug (it was closed as INVALID). Since C++17 constexpr
functions are not implicitly noexcept, and Clang considers that a DR against
C++11 and C++14 too.

G++ 9 now has the same behaviour, changed recently by
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87603 so this test fails with G++
now as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to