------- Comment #1 from reichelt at gcc dot gnu dot org 2006-07-18 10:48 ------- Here's a testcase with a slightly different error message:
======================================== template<int> void f()(0); ======================================== bug.cc:1: error: function 'void f()' is initialized like a variable bug.cc:1: internal compiler error: tree check: expected var_decl, have function_decl in cp_finish_decl, at cp/decl.c:5083 Please submit a full bug report, [etc.] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27961