------- Additional Comments From pcarlini at suse dot de 2005-09-04 14:10 ------- By the way, the error message I get with mainline (or current 4_0-branch):
reduced_2005_09_04.cc: In function 'int main()': reduced_2005_09_04.cc:66: error: '(((int)X<0>::n_primes) == 256)' is not a valid template argument for type 'bool' because it is a non-constant expression is *very* interesting: non-constant?!?!?! For comparison, with 4.0.1 (which is OK), if I change 256 -> 0: reduced_2005_09_04.cc: In function 'int main()': reduced_2005_09_04.cc:66: error: invalid use of undefined type 'struct static_assert<false>' reduced_2005_09_04.cc:59: error: declaration of 'struct static_assert<false>' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23667