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

            Bug ID: 48032
           Summary: undefined reference to destructor of local class
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

struct cmd
{
    virtual ~cmd() {}
};

int main()
{
    struct echo;            // no error if comment out this line
    struct echo : cmd {};
    new echo;               // undefined reference to `main::echo::~echo()'
    echo e;                 // no error
}

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