[Bug c++/106084] New: using constructor fails to inherit consteval
ldalessandro at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Jun 25 06:31:03 GMT 2022
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
More information about the Gcc-bugs
mailing list