> 
> but I guess that 
> 
> void foo() {
>         return void;
> }
> 
> Is still illegal, but that

Sure, because the void in 'return void' is not an expression.



void foo() {
        return void();
}

on the other hand is legal, at least according to my reading of 6.6.3.

void() is an expression of  "/cv/ void" according to 5.2.3+\epsilon
since 'void' is a 'simple type specifier according to 7.1.2.5.

Andre'

-- 
André Pönitz ............................................. [EMAIL PROTECTED]

Reply via email to