https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84896
Bug ID: 84896 Summary: Better handling of missing <utility> for std::pair Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- gcc 8 currently emits the following for: std::pair<int, int> foo; error: 'pair' in namespace 'std' does not name a template type std::pair<int, int> foo; ^~~~ We ought to suggest including <utility> for this, and probably various other stdlib templates.