lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Roberto Ierusalimschy <roberto@inf.puc-rio.br> 于2020年4月25日周六 上午2:41写道:

> Why 'void(*)(void)' would be special? Do other compilers have this
> same behavior, or is this a gcc kludge?
>

I guess void(*)(void) is special because casting anything from/to void
is considered safe by gcc .

https://github.com/gcc-mirror/gcc/blob/master/gcc/cp/typeck.c#L1211-L1234

-- 
http://blog.codingnow.com
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org