This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36941] gcc does not reject invalid cast
- From: "sabre at nondot dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2008 22:31:31 -0000
- Subject: [Bug c/36941] gcc does not reject invalid cast
- References: <bug-36941-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from sabre at nondot dot org 2008-07-25 22:31 -------
Though that does raise a question. Does GCC normally emit errors for undefined
behavior? I thought the policy was to insert runtime traps? If so, doesn't
the { x; } case qualify, or does it violate some other constraint?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36941