------- Comment #10 from reichelt at gcc dot gnu dot org 2006-08-04 21:17 ------- The reduced testcase from comment #1 now compiles on the 4.0 branch. However, the original testcase still causes hiccups (but no ICE):
bug.cc: In static member function 'static void tpl_seq_search<eval>::range<first, last>::find() [with typename eval::enum_type first = 498, typename eval::enum_type last = 20, eval = xxx]': bug.cc:10: error: template instantiation depth exceeds maximum of 500 (use -ftemplate-depth-NN to increase the maximum) instantiating 'struct tpl_seq_search<xxx>::range<499, 20>' bug.cc:10: instantiated from 'static void tpl_seq_search<eval>::range<first, last>::find() [with typename eval::enum_type first = 498, typename eval::enum_type last = 20, eval = xxx]' bug.cc:10: instantiated from 'static void tpl_seq_search<eval>::range<first, last>::find() [with typename eval::enum_type first = 497, typename eval::enum_type last = 20, eval = xxx]' [snip] bug.cc:10: instantiated from 'static void tpl_seq_search<eval>::range<first, last>::find() [with typename eval::enum_type first = 1, typename eval::enum_type last = 20, eval = xxx]' bug.cc:10: instantiated from 'static void tpl_seq_search<eval>::range<first, last>::find() [with typename eval::enum_type first = 0, typename eval::enum_type last = 20, eval = xxx]' bug.cc:28: instantiated from 'void tpl_seq_search_from_to() [with eval = xxx, typename eval::enum_type first = 0, typename eval::enum_type last = 20]' bug.cc:40: instantiated from here bug.cc:10: error: incomplete type 'tpl_seq_search<xxx>::range<499, 20>' used in nested name specifier -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25342