
4 Jan
2006
4 Jan
'06
10:09 p.m.
Arkadiy Vertleyb wrote:
AFAIU, you are trying to fix ensure_obj, but this is only one context in which typeof would fail with void expression. The other contexts include:
1) typeof emulation; 2) MSVC trick; 3) LVALUE_TYPEOF
Yes.
All of the above try to pass the expression into a function, and will fail if type of the expression is void.
Whichever solution we'll find, I think we should wrap it into a macro, and consistently apply everywhere.
As far as what you suggesting, it looks promising, but we need to evaluate consiquenses... Such as one Peder found.
I agree. Another consequence is ICE on gcc 3.3.5 :( 3.4.4 is immune to my fix. -- Alexander Nasonov