?retrofit_lang_type?

Chip Salzenberg chip@perlsupport.com
Sat Feb 6 17:51:00 GMT 1999


According to Jason Merrill:
> In some cases (such as with -fprofile-arcs -ftest-coverage), the backend
> generates FUNCTION_DECLs that don't have LANG_SPECIFIC info.  We should fix
> that.

So is this the kind of thing that my template parameter friend class
patch (below) should have been doing?

(Which reminds me, is there any reason that no one has even commented
on this patch?  I've submitted it twice or three times and not a peep.)


1999-01-06  Chip Salzenberg  <chip@perlsupport.com>

	* friend.c (make_friend_class): Avoid core dump when
	not-yet-defined friend type lacks TYPE_LANG_SPECIFIC().


Index: gcc/cp/friend.c
*************** make_friend_class (type, friend_type)
*** 262,266 ****
      }
  
!   if (CLASSTYPE_TEMPLATE_SPECIALIZATION (friend_type)
        && uses_template_parms (friend_type))
      {
--- 262,267 ----
      }
  
!   if (TYPE_LANG_SPECIFIC (friend_type)
!       && CLASSTYPE_TEMPLATE_SPECIALIZATION (friend_type)
        && uses_template_parms (friend_type))
      {

-- 
Chip Salzenberg      - a.k.a. -      <chip@perlsupport.com>
      "When do you work?"   "Whenever I'm not busy."


More information about the Gcc-patches mailing list