[llvm-bugs] [Bug 36955] New: Unclear error message default copy constructor

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 30 02:48:25 PDT 2018


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

            Bug ID: 36955
           Summary: Unclear error message default copy constructor
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvapen at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

I did not prepare a reproduction.
Recently, we got the following error message:
the parameter for this explicitly-defaulted copy constructor is const, but a
member or base requires it to be non-const

This has the context:
1>          pair(const pair&) = default;
1>          ^

it also adds a note on where this pair is being initiated.

However, it does not add a note on where the member/base is defined which
contains the non-const copy constructor.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180330/7d829386/attachment.html>


More information about the llvm-bugs mailing list