C++ PATCH for c++/65646 (ICE after error specializing missing static data member)
Jason Merrill
jason@redhat.com
Wed Apr 1 16:36:00 GMT 2015
This testcase started crashing because the added call to
check_explicit_specialization does a SET_DECL_TEMPLATE_SPECIALIZATION
which wasn't happening previously, and then determine_visibility assumes
that if DECL_USE_TEMPLATE is set, so is DECL_TEMPLATE_INFO. Fixed for
GCC 5 by avoiding the call if we aren't dealing with a member template.
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 65646.patch
Type: text/x-patch
Size: 1118 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150401/ac3c4c47/attachment.bin>
More information about the Gcc-patches
mailing list