[llvm-bugs] [Bug 28885] New: Regression concerning inheriting constructor

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 6 11:02:48 PDT 2016


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

            Bug ID: 28885
           Summary: Regression concerning inheriting constructor
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: abramo.bagnara at bugseng.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following typescript shows that AST for UsingDecl constructor name has been
recently changed in a wrong way. It is possible it is related to recent changes
in inheriting constructors implementation.

$ cat p.cc
struct A {
    A();
};

struct B : A {
  using A::A;
};

$ clang++-3.8 -cc1 -ast-print -std=c++11 p.cc
struct A {
    A();
};
struct B : A {
    using A::A;
};
$ clang++-3.9 -cc1 -ast-print -std=c++11 p.cc
struct A {
    A();
};
struct B : A {
    using A::B;
};

-- 
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/20160806/072031aa/attachment.html>


More information about the llvm-bugs mailing list