This is the mail archive of the gcc-patches@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]

[C++]: New testcase failure


hi,
I goofed. The recent patch I installed to fix an ICE caused a new
spurious testsuite failure. I'm not sure how that happened as I thought
I had run the testsuite. My appologies.
	(note_name_declared_in_class): Use OVL_CURRENT to get at a
	potential overload.

g++.old-deja/g++.pt/memtemp64.patch now produces an additional line
of diagnostic rather than ICE (line 7 below).
p64.C:13: template-id `f<S1<T> >' in declaration of primary template
p64.C:13: declaration of `void S2<C>::f (T)'
p64.C:7: changes meaning of `f' from `void f (T)'

This appears to be some strangeness in the failure mode caused by
the original problem on line 13. I'm not sure whether it would best
be marked as an XFAILING bogus error, or as an expected error. Note
we don't get the failure if line 13 is valid (and does not contain
specialization in a primary template declaration), so this is not
an underlying compiler bug.

the attached patch marks it as an expected error, ok?

nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
Index: testsuite/g++.old-deja/g++.pt/memtemp64.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.pt/memtemp64.C,v
retrieving revision 1.2
diff -c -3 -p -r1.2 memtemp64.C
*** memtemp64.C	1998/12/16 21:58:46	1.2
--- memtemp64.C	2000/03/20 08:48:00
*************** template <class T>
*** 4,10 ****
  struct S1 {};
  
  template <class T>
! void f(T);
  
  template <class C>
  struct S2
--- 4,10 ----
  struct S1 {};
  
  template <class T>
! void f(T);        // ERROR - changes meaning (our failure mode for the bad specialization gives additional errors)
  
  template <class C>
  struct S2

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