[Bug libstdc++/78483] Error: reference to 'on_exit' is ambiguous

2016-11-23 Thread krzysztof at jusiak dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78483 --- Comment #5 from Kris --- Fair do's. But then, IMHO, 'on_exit' shouldn't pollute the global namespace either. Hence, it should be prefixed with '__'?

[Bug libstdc++/78483] New: Error: reference to 'on_exit' is ambiguous

2016-11-22 Thread krzysztof at jusiak dot net
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: krzysztof at jusiak dot net Target Milestone: --- It seems that including cstdlib is not adding std namespace, at least for on_exit function, which causes ambiguity with user defined type with the same name