PR c++/93257 - consteval void function.
authorJason Merrill <jason@redhat.com>
Wed, 15 Jan 2020 19:45:24 +0000 (14:45 -0500)
committerJason Merrill <jason@redhat.com>
Wed, 15 Jan 2020 20:12:03 +0000 (15:12 -0500)
commit596334fa040094c772965ff1998d171fe3e00348
treeefcc88169fe8ace60a2df21656b5d7d0ab2f6a4c
parent7192b1ec12484f5ca8b20930d8dc4d28ab4a533a
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.
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp2a/consteval-void1.C [new file with mode: 0644]