This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Switching 'cast to union' off?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]