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: [PATCH]: Fix PR c++/22452


Daniel Berlin wrote:

>>actually, looking at the code, I think you just need
>>   if (TREE_CODE (decl) == CONST_DECL)
>>     return decl_linkage (TYPE_NAME (TREE_TYPE (decl)));
>>
>>before the comdat check.  Can you give that a try?
>>
> 
> 
> That works too.
> 
> Can i commit that patch with the obvious changelog?

yes, thank you!

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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