Re: C++ PATCH for c++/65646 (ICE after error specializing missing static data member)

2015-04-23 Thread Jason Merrill
On 04/01/2015 12:36 PM, Jason Merrill wrote: 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_TEMPLAT

C++ PATCH for c++/65646 (ICE after error specializing missing static data member)

2015-04-01 Thread Jason Merrill
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 ca