]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add std::to_underlying to the set of stdlib functions that are always folded
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 12 May 2025 20:16:46 +0000 (23:16 +0300)
committerVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 14 May 2025 08:27:38 +0000 (11:27 +0300)
commit3ecca8f3ad7e7fe3da0e600fb66fca3dc6bae006
treeb8198ad8bb5c48a4d3cce735d3edaaf94229cafc
parent8519b8ba9dd9567a5f90966351c1e758dbf511a4
Add std::to_underlying to the set of stdlib functions that are always folded

gcc/cp/ChangeLog:
* cp-gimplify.cc (cp_fold): Add to_underlying.

gcc/testsuite/ChangeLog:
* g++.dg/opt/pr96780_cpp23.C: New.

libstdc++-v3/ChangeLog:
* include/std/utility (to_underlying): Add the __always_inline__ attribute.

Signed-off-by: Ville Voutilainen <ville.voutilainen@gmail.com>
gcc/cp/cp-gimplify.cc
gcc/testsuite/g++.dg/opt/pr96780_cpp23.C [new file with mode: 0644]
libstdc++-v3/include/std/utility