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 #6 from manu at gcc dot gnu dot org  2008-08-23 02:44 -------
extern struct S x;
void foo() { (void)x; }
void baz() { x ; }

pr36941.c: In function ?baz?:
pr36941.c:3:1: error: expression statement has incomplete type

Where is the quote about undefined behaviour from?


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org


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]