Compilers before 3.4.3 (including 2.95.3, gcc-3.3.x) accept const int table[0] = {};
With 3.4.3, we see [apl]aluminum$ /tools/linux/gcc-3.4.3/bin/g++ -c bug.cxx bug.cxx:1: internal compiler error: in tree_low_cst, at tree.c:3313 Please submit a full bug report, with preprocessed source if appropriate. This also fails on Solaris..... -- Summary: ICE on zero-length array with empty initializer... Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: apl at alum dot mit dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18384