c++: Use STATIC_ASSERT for OVL_OP_MAX.
authorMartin Liska <mliska@suse.cz>
Fri, 12 Mar 2021 13:32:07 +0000 (14:32 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 23 Apr 2021 07:37:18 +0000 (09:37 +0200)
commitcbca62831cb7c1c7c20d67fcf929f156b09923bf
treea078ebf0c9493e6ef8a1722aa84dbb8c9dca9592
parent700e542971251b11623cce877075567815f72965
c++: Use STATIC_ASSERT for OVL_OP_MAX.

gcc/cp/ChangeLog:

* cp-tree.h (STATIC_ASSERT): Prefer static assert.
* lex.c (init_operators): Remove run-time check.
gcc/cp/cp-tree.h
gcc/cp/lex.c