https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102846
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The "did you forget to include" diagnostics don't look at the context, they just do simple string matching of undeclared identifiers against a hardcoded list of standard names, and suggest a header.