This question is probably more fit for cfe-dev (CC’d). I’d guess that it has to do with which declaration we look at when determining the function attributes.
Cfe-devs, any feedback on the issue described below?
I have a potential solution here:
Is this a reasonable fix?