Re: [C++ PATCH] Don't call maybe_apply_pragma_weak for templates (PR c++/52759)

2012-03-29 Thread Jason Merrill
On 03/29/2012 08:30 AM, Jakub Jelinek wrote: The recently added assert in mangle.c doesn't like mangling to be performed during processing_template_decl. With #pragma weak foo we can hit it unfortunately. This patch fixes that. Perhaps we could call maybe_apply_pragma_weak from pt.c when insta

[C++ PATCH] Don't call maybe_apply_pragma_weak for templates (PR c++/52759)

2012-03-29 Thread Jakub Jelinek
Hi! The recently added assert in mangle.c doesn't like mangling to be performed during processing_template_decl. With #pragma weak foo we can hit it unfortunately. This patch fixes that. Perhaps we could call maybe_apply_pragma_weak from pt.c when instantiating, though not sure how much useful