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]
Other format: [Raw text]

[Bug c/36941] gcc does not reject invalid cast



------- 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


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