C++ PATCH for c++/85356, C++17 ICE with pointer to member function in template

Jason Merrill jason@redhat.com
Thu Apr 12 20:03:00 GMT 2018


We weren't instantiating exception-specifications when a template
referred to them, but that won't fly in the C++17 world where they're
part of the type, so we need to resolve them to do overload resolution
for non-dependent expressions.

The change to check_redeclaration_exception_specification is necessary
because type_dependent_expression_p (fn) will fail for a dependent
new_decl, beacuse it doesn't have DECL_TEMPLATE_INFO yet.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 85356.diff
Type: text/x-patch
Size: 3420 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180412/3a226dc1/attachment.bin>


More information about the Gcc-patches mailing list