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 jos...@codesourcery.com