Bug 33571 - [4.3 Regression] ICEs on unknown attributes on template functions
Summary: [4.3 Regression] ICEs on unknown attributes on template functions
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2007-09-27 14:39 UTC by Richard Biener
Modified: 2007-09-27 20:58 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Biener 2007-09-27 14:39:14 UTC
struct foo {
 template <class T>
 void __attribute__((leafify)) bar() {}
};

void bar(void)
{
 foo f;
 f.bar<int>();
}
Comment 1 Richard Biener 2007-09-27 14:39:59 UTC
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
Comment 2 Jason Merrill 2007-09-27 20:58:36 UTC
Fixed.