ChenMiaoi wrote:

> I believe I have more clear picture now. The parser currently doesnt seem to 
> defer access check for leading GNU function attributes. Before this PR: the 
> issue was observable only in global namespace. Because this PR introduced 
> mixing GNU attributes in namespace scope, the same issue is now also 
> observable in the namespace scope.

Yes, it looks like an existing bug that this PR exposed in namespace scope too. 
I think we can probably keep this change and fix the underlying bug in a 
follow-up.

It looks like the global-scope bug was introduced in b78d5380da11. I couldn’t 
find an issue tracking this, so I might look into it a bit more and file one.

https://github.com/llvm/llvm-project/pull/240734
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to