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: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2008 22:29: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 #1 from joseph at codesourcery dot com 2008-07-25 22:29 -------
Subject: Re: New: gcc does not reject invalid cast
On Fri, 25 Jul 2008, sabre at nondot dot org wrote:
> GCC accepts:
> extern struct S x;
> void foo() { (void)x; }
What constraint do you think this violates, or are you just reporting a
QoI issue for not diagnosing undefined behavior?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36941