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

            Bug ID: 42097
           Summary: variant:668:1: error: the parameter for this
                    explicitly-defaulted copy constructor is const, but a
                    member or base requires it to be non-const
           Product: libc++
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

See the simple example:

https://wandbox.org/permlink/ZvoFEk5D9PUd3fVX

If you add const to the line 6, it magically works. So it does if you change
standard to C++2a

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

Reply via email to