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

            Bug ID: 43739
           Summary: Non-constexpr swap is allowed in constexpr context
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangb...@nondot.org
          Reporter: zamazan...@tut.by
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

For the following code https://godbolt.org/z/8umUCN GCC produces compiler error
(that's correct, I think), but Clang(trunk and 9) compiles it successfully.

I think Clang shall has here a compiler error too.

Notice that Clang 8 is correct here: compilation fails.

Godbolt link: https://godbolt.org/z/8umUCN

-- 
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