[C/C++ PATCH] Fix up build of GCC 4.6 and earlier with GCC 9+ (PR c/90677, take 2)

Joseph Myers joseph@codesourcery.com
Fri Nov 22 21:51:00 GMT 2019


On Fri, 22 Nov 2019, Jason Merrill wrote:

> On 11/22/19 2:10 PM, Jakub Jelinek wrote:
> > On Wed, Nov 20, 2019 at 02:01:58PM -0500, Jason Merrill wrote:
> > > I would think that get_named_type should find struct or enum names that
> > > have
> > > been hidden by another declaration; that would fix this without
> > > special-casing cgraph_node.  For the C++ front-end, that would be
> > > 
> > > lookup_qualified_name (global_namespace, id, /*prefer_type*/2,
> > > /*complain*/false)
> > 
> > Ok, this patch does that, for C by going from I_TAG_BINDING to the global
> > level.  Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
> 
> OK on Monday unless a C maintainer has a comment.

I'm fine with this patch.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list