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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to