https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107292
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- this might require some new attributes to put on the constructor saying it will not be used if the variable is not used for diagnostic reasons. I don't think this can be done without any major changes like that really.