[Bug c++/84896] New: Better handling of missing <utility> for std::pair
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 16 02:05:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list