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++] template instantiation confusion


Ack!  

2000-08-23  Jason Merrill  <jason@redhat.com>

	* method.c (process_modifiers): Use same_type_p.

*** method.c.~1~	Wed Aug 23 11:47:37 2000
--- method.c	Wed Aug 23 11:47:54 2000
*************** process_modifiers (parmtype) 
*** 1253,1260 ****
    if (TYPE_READONLY (parmtype))
      OB_PUTC ('C');
    if (TREE_CODE (parmtype) == INTEGER_TYPE
!       && parmtype != char_type_node
!       && parmtype != wchar_type_node
        && (TYPE_MAIN_VARIANT (parmtype)
  	  == unsigned_type (TYPE_MAIN_VARIANT (parmtype)))
        && ! TYPE_FOR_JAVA (parmtype))
--- 1253,1260 ----
    if (TYPE_READONLY (parmtype))
      OB_PUTC ('C');
    if (TREE_CODE (parmtype) == INTEGER_TYPE
!       && ! same_type_p (parmtype, char_type_node)
!       && ! same_type_p (parmtype, wchar_type_node)
        && (TYPE_MAIN_VARIANT (parmtype)
  	  == unsigned_type (TYPE_MAIN_VARIANT (parmtype)))
        && ! TYPE_FOR_JAVA (parmtype))

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