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: unassignedclangb...@nondot.org
          Reporter: jva...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to