struct foo { template <class T> void __attribute__((leafify)) bar() {} }; void bar(void) { foo f; f.bar<int>(); }
Program received signal SIGSEGV, Segmentation fault. 0x0000000000545c5a in is_late_template_attribute (attr=0x2b2f2b957b70, decl=0x2b2f2f438a00) at /space/rguenther/src/svn/pointer_plus/gcc/cp/decl2.c:994 994 else if (TREE_CODE (decl) == TYPE_DECL || spec->type_required) (gdb) print spec $1 = (const struct attribute_spec *) 0x0 (gdb) call debug_tree (decl) <function_decl 0x2b2f2f438a00 evaluate type <function_type 0x2b2f2bd620d0
Fixed.