[Bug libstdc++/64535] Emergency buffer for exception allocation too small
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 27 12:45:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64535
--- Comment #25 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #18)
> But again - where can you catch exceptions thrown from global
> initializers / destructors?
Within those global constructors/destructors themselves:
struct Global {
~Global() {
try {
throw 1;
} catch (...) {
}
}
} global;
Anyway, we should probably use an init_priority for the pool, because as well
as an order of destruction problem it's possible for a global constructor to
try to use the pool, and that must not happen before it has been initialized by
the constructor.
More information about the Gcc-bugs
mailing list