[Bug libstdc++/89181] Can std C++ library follow ISO spec parameter names?

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 4 08:57:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89181

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonny Grant from comment #0)
> Can the libstd++ header files show the same parameter names as the spec
> without __ etc?

No, of course not, consider:

#define n 20
#include <string>
int main() { return n; }

This valid program won't compile if the library headers use 'n'.

We don't do it for fun.


More information about the Gcc-bugs mailing list