https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106084

            Bug ID: 106084
           Summary: using constructor fails to inherit consteval
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldalessandro at gmail dot com
  Target Milestone: ---

The following code sample fails to compile with gcc.

    struct base {
        consteval base() {}
    };

    struct child : base {
        using base::base;
    };

    constexpr child i;

<source>:8:20: error: 'this' is not a constant expression

live: https://godbolt.org/z/xf6EWx4e8
  • [Bug c++/106084] New: using con... ldalessandro at gmail dot com via Gcc-bugs

Reply via email to