https://gcc.gnu.org/g:507222c5ad5b4106b112e708803b40487917d012
commit r17-1142-g507222c5ad5b4106b112e708803b40487917d012 Author: yxj-github-437 <[email protected]> Date: Sat May 30 16:41:01 2026 +0800 c++/modules: Add reflection in module dialect. Some ICE will occur when reflection codes compile without -freflection but the std module built with -freflection. So the module dialect should include reflection. gcc/cp/ChangeLog: * module.cc (module_state_config::get_dialect): Add reflection dialect. Reviewed-by: Jason Merrill <[email protected]> Diff: --- gcc/cp/module.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index d4d47ed26a95..1cfaa57adc35 100644 --- a/gcc/cp/module.cc +++ b/gcc/cp/module.cc @@ -17247,6 +17247,7 @@ module_state_config::get_dialect () ? "/coroutines" : ""), flag_module_implicit_inline ? "/implicit-inline" : "", flag_contracts ? "/contracts" : "", + flag_reflection ? "/reflection" : "", NULL); return dialect;
