OSDN Git Service

* init.c (build_new): Allow enumeration types for the array-bounds
[pf3gnuchains/gcc-fork.git] / gcc / tree.c
index b45dc19..4ef1441 100644 (file)
@@ -2482,7 +2482,7 @@ build1 (code, type, node)
       break;
 
     default:
-      if (TREE_CODE_CLASS (code) == '1' && TREE_CONSTANT (node))
+      if (TREE_CODE_CLASS (code) == '1' && node && TREE_CONSTANT (node))
        TREE_CONSTANT (t) = 1;
       break;
     }