https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114574

--- Comment #20 from Martin Uecker <muecker at gwdg dot de> ---
(In reply to Martin Uecker from comment #18)
> > 
> > +     TYPE_CANONICAL (x) = TYPE_CANONICAL (t);
> > As has been discussed, this is wrong, it should have been
> > TYPE_CANONICAL (x) = build_qualified_type (TYPE_CANONICAL (t), TYPE_QUALS
> > (x));
> > or so.
> 
> Thanks

Actually, I think we need to also add the lookup in the hash table to
c_build_qualified_type to find the right TYPE_CANONICAL.

Reply via email to