This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/49107 (excessive instantiation due to noexcept)
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 09 Jun 2011 09:50:29 +0200
- Subject: Re: C++ PATCH for c++/49107 (excessive instantiation due to noexcept)
- References: <4DEFEA53.9030000@redhat.com>
On 06/08/2011 11:32 PM, Jason Merrill wrote:
49107 is an issue with the addition of noexcept to the standard
library causing extra instantiations, to the point that code that
worked before doesn't work now due to circular dependency. Someone
suggested that to avoid this problem we could defer instantiation of
noexcept-specifiers until they are actually needed. This patch
implements that suggestion, and does in fact seem to fix the problem.
Thanks a lot Jason.
I'm trying to figure out which are the implications for the library of
the comment you added to c++/48468, I think it would be now more
difficult to implement consolidated is_nothrow_* traits, thus not
computing first via sfinae the corresponding is_* trait. But doesn't
seem a serious limitation...
Thanks again,
Paolo.