Re: [PATCH] c++, v2: Improve handling of foreigner namespace attributes

2022-10-06 Thread Jason Merrill via Gcc-patches
On 10/6/22 13:20, Jakub Jelinek wrote: On Thu, Oct 06, 2022 at 09:42:47AM -0400, Jason Merrill wrote: - tree t = lookup_attribute ("fallthrough", attr); + tree t = lookup_attribute (NULL, "fallthrough", attr); + if (t == NULL_TREE) +t = lookup_attribute ("gnu", "fallthrough", attr); May

[PATCH] c++, v2: Improve handling of foreigner namespace attributes

2022-10-06 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 06, 2022 at 09:42:47AM -0400, Jason Merrill wrote: > > - tree t = lookup_attribute ("fallthrough", attr); > > + tree t = lookup_attribute (NULL, "fallthrough", attr); > > + if (t == NULL_TREE) > > +t = lookup_attribute ("gnu", "fallthrough", attr); > > Maybe lookup_attribute wit