This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++/DWARF2 build failure in libstdc++


>>>>> "Jim" == Jim Wilson <wilson@cygnus.com> writes:

    Jim> C++ has been broken for targets that use DWARF2 since Sept
    Jim> 25.

Fixed like this.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

1999-10-20  Mark Mitchell  <mark@codesourcery.com>

	* cp-tree.h (DECL_NAMESPACE_SCOPE_P): Don't treat template
	parameters as having namespace scope.

Index: testsuite/g++.old-deja/g++.pt/debug1.C
===================================================================
RCS file: debug1.C
diff -N debug1.C
*** /dev/null	Tue May  5 13:32:27 1998
--- debug1.C	Wed Oct 20 00:01:05 1999
***************
*** 0 ****
--- 1,8 ----
+ // Build don't link:
+ // Special g++ Options: -g
+ // Origin: Jim Wilson <wilson@cygnus.com>
+ 
+ template<template<class> class _Oper,
+     template<class, class> class _Meta1,
+     template<class, class> class _Meta2,
+     class _Dom1, class _Dom2> class _BinClos;
Index: cp/cp-tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.333
diff -c -p -r1.333 cp-tree.h
*** cp-tree.h	1999/10/13 08:49:54	1.333
--- cp-tree.h	1999/10/20 07:01:09
*************** struct lang_decl
*** 1766,1774 ****
  #define DECL_VIRTUAL_CONTEXT(NODE) DECL_CONTEXT (NODE)
  
  /* 1 iff NODE has namespace scope, including the global namespace.  */
! #define DECL_NAMESPACE_SCOPE_P(NODE) \
!   (DECL_CONTEXT (NODE) == NULL_TREE \
!    || TREE_CODE (DECL_CONTEXT (NODE)) == NAMESPACE_DECL)
  
  /* 1 iff NODE is a class member.  */
  #define DECL_CLASS_SCOPE_P(NODE) \
--- 1766,1774 ----
  #define DECL_VIRTUAL_CONTEXT(NODE) DECL_CONTEXT (NODE)
  
  /* 1 iff NODE has namespace scope, including the global namespace.  */
! #define DECL_NAMESPACE_SCOPE_P(NODE)				\
!   (!DECL_TEMPLATE_PARM_P (NODE)					\
!    && TREE_CODE (CP_DECL_CONTEXT (NODE)) == NAMESPACE_DECL)
  
  /* 1 iff NODE is a class member.  */
  #define DECL_CLASS_SCOPE_P(NODE) \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]