[Bug c++/57632] Operator new overloads with stdc++11 enabled looses exception specifier (MacOsX)
basv@odd-e.com
gcc-bugzilla@gcc.gnu.org
Tue Jun 18 01:22:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57632
--- Comment #3 from Bas Vodde <basv@odd-e.com> ---
Thanks for the comments. I understand the problems in implementing a compiler,
when this is also unclear in the language itself.
Whatever is decided related to this, it would probably be a good idea to give a
better error message. Right now, the error message is telling the user that the
operator new *with* an exception specifier doesn't have one and that they are
different, even though the two lines are exactly the same. It is a bit
confusing.
It would be good though to solve this in a way that both works with C++11 and
C++03 as it came up when compiling a piece of code that is used by multiple
compilers and by both language versions.
More information about the Gcc-bugs
mailing list