gcc-bugs@gcc.gnu.org
[Top] [All Lists]

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

Subject: [Bug c/36941] gcc does not reject invalid cast
From: "manu at gcc dot gnu dot org"
Date: 23 Aug 2008 02:44:37 -0000

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Bug c/36941] gcc does not reject invalid cast, manu at gcc dot gnu dot org <=