[Bug c++/124709] when "-freflection" is enabled, "import std;" and header includes of std library doesn't compile

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 30 23:55:07 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124709

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to nurullahcitil1536 from comment #3)
> (In reply to Andrew Pinski from comment #2)
> > There might be already a bug about this. Where modules code is not handling
> > what turning on reflection produces (internally).
> 
> I have no clue about internals of gcc, but no reflection feature is used...
> The issue arises by simply using "-freflection" flag. You probably knew
> that, but still. Wanted to clarify

Yes i mean there was a known issue where using just turning on reflection
(without using any reflection features) is causing issues with modules.


More information about the Gcc-bugs mailing list