On 6/23/26 6:53 PM, Marek Polacek wrote:
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk/16?

-- >8 --
This PR shows that some of our meta type traits don't work with
references: we emit bogus

   error: 'const' qualifiers cannot be applied to 'int&'

errors.  The problem is that build_stub_type is trying to add
const to a reference, which you can only do through a typedef,
but here we don't have a typedef.

tsubst uses tf_ignore_bad_quals to avoid this problem with template argument substitution. Maybe build_stub_type should use it as well?

Jason

Reply via email to