This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Switching 'cast to union' off?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Switching 'cast to union' off?
- From: Dirk Herrmann <Herrmann at ida dot ing dot tu-bs dot de>
- Date: Fri, 17 Mar 2000 09:33:51 +0100
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