This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 instantiating, though not sure
how much useful will that be, aren't most templates weak already anyway?

Yeah, doesn't seem that useful. The patch is OK.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]