diff mc-inline.c @ 890:9d5da127f462

inline partial struct init in declaration.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 06 Apr 2014 12:49:08 +0900
parents 6a92d3e8a4b5
children 8bdd5061cb8f
line wrap: on
line diff
--- a/mc-inline.c	Sun Apr 06 11:54:08 2014 +0900
+++ b/mc-inline.c	Sun Apr 06 12:49:08 2014 +0900
@@ -1499,9 +1499,7 @@
 #endif
     case CAST:
         if (e2==0) {
-            // casted empty structure  (struct hoge){}
-            // I think we can skip it. It means nothing in declaration
-            //        but it make zero fill, we have to handle it later
+            error(-1); 
             return 0;
         } else if (car(e2)==DECL_DATA) {
             // casted initialized structure  (struct hoge){...}