Switching 'cast to union' off?
Dirk Herrmann
Herrmann@ida.ing.tu-bs.de
Fri Mar 17 00:34:00 GMT 2000
Hello everybody!
Is there a means to switch the GNU extension 'cast to union' off, and
not having to use -pedantic? If so, this is a manual bug report,
because I couldn't find it there.
If not, I would like to suggest this as a feature request. In the guile
project, we have been using 'typedef long SCM' as the definition for the
basic type. However, this lead to problems when people accidentally
mixed (long) integers with SCM types. Our current solution is to use
'typedef union { long n; } SCM, but this is the point where 'cast to
union' is disturbing.
--
Best regards,
Dirk Herrmann
More information about the Gcc-bugs
mailing list