[Bug c++/81911] Constant expression from permitted result of a constant expression is not constexpr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81911 Antony Polukhin changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Antony Polukhin --- Thanks for he clarifications!
[Bug c++/81911] Constant expression from permitted result of a constant expression is not constexpr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81911 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #1 from TC --- The full-expression of the initialization of c0 includes the lvalue-to-rvalue conversion on someVar[0], which is not allowed in a core constant expression; see [expr.const]/2.7. Note that [expr.const]/2.7.1 only applies to complete objects, which someVar[0] is not (it's a subobject).