> It's definitely a natural qualifier — lvalue-to-rvalue drops it, T* is a
> subtype of T may_alias *, it propagates along member accesses, etc.
>
> We don't always follow GCC's lead on canonical typing;  notably,
> noreturn and calling conventions are part of a canonical function
> type in Clang, although unfortunately we don't mangle them right
> now.  I'm okay with that applying here, too, although I do think we
> should mangle it.

Wait, wouldn't mangling this mean that client programs built with
clang can't link against a libglib.so built by gcc?

>  Mostly, I think it's going to be pretty uncommon
> to see this sort of thing in C++, so technically breaking interoperation
> for conceptual purity is not a big deal.
>
> Anyway, it would also be (temporarily) acceptable to just recognize
> the attribute to suppress this warning.
>
> John.

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to