PR c++/93257 - consteval void function.
A prvalue can have void type, and if it doesn't do anything prohibited in a constant expression, it's vacuously constant. * constexpr.c (verify_constant): Allow void_node.
Showing
gcc/testsuite/g++.dg/cpp2a/consteval-void1.C
0 → 100644
Please
register
or
sign in
to comment