http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51344
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu.org
--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-01-17 11:09:13
UTC ---
I investigated a bit and the cause for the endless loop is, that the
attribute-list for this decl is pointing to itself. So in loops for ever in
private_lookup_attribute.
I get following backtrace in gdb for it
#0 0x0068853f in private_lookup_attribute (attr_name=0x100e1c8 "gnu_inline",
attr_len=10, list=0x7ee3ce58) at ../../gcc/gcc/tree.c:5254
#1 0x00446308 in start_preparsed_function (decl1=0x7ee71880, attrs=0x0,
flags=3) at ../../gcc/gcc/tree.h:4592
#2 0x0051d4b8 in cp_parser_type_specifier (parser=0x7ee80ce8,
flags=<value optimized out>, decl_specs=0x5a4ca8c,
is_declaration=1 '\001', declares_class_or_enum=0x5a4ca44,
is_cv_qualifier=0x5a4ca4b "") at ../../gcc/gcc/cp/parser.c:21675
#3 0x00530f82 in cp_parser_decl_specifier_seq (parser=0x7ee80ce8, flags=1,
decl_specs=0x5a4ca8c, declares_class_or_enum=0x5a4cae4)
at ../../gcc/gcc/cp/parser.c:10696
#4 0x00537588 in cp_parser_single_declaration (parser=0x7ee80ce8,
checks=0x0, member_p=0 '\0', explicit_specialization_p=0 '\0',
friend_p=0x5a4cb4b "") at ../../gcc/gcc/cp/parser.c:21271
#5 0x00537a23 in cp_parser_template_declaration_after_export (
parser=0x7ee80ce8, member_p=30 '\036') at ../../gcc/gcc/cp/parser.c:21157
#6 0x00541749 in cp_parser_declaration (parser=0x7ee80ce8)
at ../../gcc/gcc/cp/parser.c:10160