X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=book_make.cpp;h=1b8fe6c90cd198f73417ba6dc3d103c8c6753c38;hb=5eed4adb3552562329c0b0b460c8851efb1a38bb;hp=ba02f512baa9357408530a0c55b0f3e6fb319e4d;hpb=ad2265d4fc54fc9ba99fc606e6174df34bfb4a0f;p=polyglot.git diff --git a/book_make.cpp b/book_make.cpp index ba02f51..1b8fe6c 100644 --- a/book_make.cpp +++ b/book_make.cpp @@ -35,16 +35,22 @@ struct entry_t { uint64 key; uint16 move; uint16 count; - union{ // unfortunately minggw32 seems to have a bug with anon unions. - struct { +// Unfortunately the minggw32 cross compiler [4.2.1-sjlj (mingw32-2)] +// seems to have a bug with anon structs contained in unions when using -O2. +// See the ASSERT below in "read_entry_file"... +// To be fair this seems to be illegal in C++ +// although it is hard to understand why, and the compiler does not complain +// even with -Wall. +// union { +// struct { uint16 n; uint16 sum; - }; - struct{ +// }; +// struct { uint8 height; int line; - }; - }; +// }; + // }; uint8 colour; };