[llvm-bugs] [Bug 48763] New: no constexpr default constructor if member inherits a constexpr default constructor

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 15 11:59:36 PST 2021


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

            Bug ID: 48763
           Summary: no constexpr default constructor if member inherits a
                    constexpr default constructor
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ryan_greenblatt at brown.edu
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

https://godbolt.org/z/G8vY63
```
struct A {
  constexpr A() {}
};

struct B : A {
  using A::A;
  constexpr B(int) {}
};

struct C {
  B b;
};

constexpr C v;
```
Fails on all the version of clang I tested.

-- 
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/20210115/bc3eac69/attachment-0001.html>


More information about the llvm-bugs mailing list