[llvm-bugs] [Bug 24485] New: with unique_ptr, compiles, when inherit from unique_ptr, get not complete error

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 18 03:45:02 PDT 2015


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

            Bug ID: 24485
           Summary: with unique_ptr, compiles, when inherit from
                    unique_ptr, get not complete error
           Product: libc++
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cppljevans at suddenlink.net
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
    Classification: Unclassified

Created attachment 14736
  --> https://llvm.org/bugs/attachment.cgi?id=14736&action=edit
source code

When using plain unique_ptr, compile succeeds; however, when
using var_rhs_ptr which just inherits from unique_ptr, and 
doesn't add any fields for methods, compile fails with message
about var_rhs_ptr being incomplete.

Attached source code has macro, INHERIT_UNIQUE, which, when
defined, causes var_rhs_ptr to inherit from unique_ptr; otherwise,
var_rhs_ptr is a template alias for unique_ptr.

Attached compile output shows g++ works as expected, and,
when !defined(INHERIT_UNIQUE) clang works as expected; however,
when defined(INHERIT_UNIQUE), clang fails compilation.

The compile output shows the OS and versions of g++ and clang++.

-- 
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/20150818/0ea38ff6/attachment.html>


More information about the llvm-bugs mailing list