https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124227
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <[email protected]>: https://gcc.gnu.org/g:1aed3a853e2d580d94f1a16111a6cc57df9c5cc9 commit r16-7691-g1aed3a853e2d580d94f1a16111a6cc57df9c5cc9 Author: Marek Polacek <[email protected]> Date: Tue Feb 24 08:55:31 2026 -0500 c++/reflection: fix ICE with OMP_CLAUSE [PR124227] This test crashes with -fopenmp -freflection because consteval_only_p gets <omp_clause 0x7fffe99db120 type <tree_vec 0x7fffe982b900 length:3> reduction op-0: <var_decl 0x7fffe99d6390 acc> op-1: <init_expr 0x7fffe99c9870> op-2: <bind_expr 0x7fffe982b8a0> op-3: <var_decl 0x7fffe99d6428 D.2864> op-4:> so it takes its type, but complete_type crashes on a TREE_VEC. So let's handle TREE_VEC in consteval_only_p. PR c++/124227 gcc/cp/ChangeLog: * reflect.cc (consteval_only_p): Handle TREE_VEC. gcc/testsuite/ChangeLog: * g++.dg/reflect/pr124227.C: New test. Reviewed-by: Jason Merrill <[email protected]>
