version 1.4w10UCIb20
[polyglot.git] / book_make.cpp
index ba02f51..1b8fe6c 100644 (file)
@@ -35,16 +35,22 @@ struct entry_t {
     uint64 key;\r
     uint16 move;\r
     uint16 count;\r
-    union{   // unfortunately minggw32 seems to have a bug with anon unions.\r
-        struct { \r
+// Unfortunately the minggw32 cross compiler [4.2.1-sjlj (mingw32-2)] \r
+// seems to have a bug with anon structs contained in unions when using -O2.\r
+// See the ASSERT below in "read_entry_file"...\r
+// To be fair this seems to be illegal in C++\r
+// although it is hard to understand why, and the compiler does not complain\r
+// even with -Wall.\r
+//    union {   \r
+//        struct { \r
             uint16 n;\r
             uint16 sum;\r
-        };\r
-        struct{\r
+//        };\r
+//        struct {\r
             uint8 height;\r
             int line;\r
-        };\r
-    };\r
+//        };\r
+        //   };\r
     uint8 colour;\r
 };\r
 \r