[cxx-abi-dev] Mangling sizeof
Jason Merrill
jason at redhat.com
Thu Mar 5 14:30:41 UTC 2009
Jason Merrill wrote:
> No, it would only affect sizeof (expression).
Specifically, something like this:
template <int I> struct A { };
template <class T> A<sizeof T(1)> f() { }
int main()
{
f<int>();
}
Few uses of sizeof(expression) have been manglable at all in the past;
this is one, and I don't know why anyone would write this rather than
just A<sizeof T>. I can't think of another example.
Jason
More information about the cxx-abi-dev
mailing list