https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116048
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 58734 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58734&action=edit Proposed fix Here is the proposed fix which implements qualident state tracking and checks qualidents when const, type and variables are created in P3Build and PCBuild.