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]

Re: eb fix 1


Martin von Loewis wrote:

> This code is in error, and egcs detects that.
> We might want to remove it.

We need to pick a direction on what we want to do with those.

But are you sure about this patch?  It generates a different error for
me.  Are you perhaps running something other than what's checked in? :-)

/net/rjlhome/home/play/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb118.C:17: e
xplicit specialization not preceded by `template <>'
/net/rjlhome/home/play/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb118.C:21: e
xplicit specialization not preceded by `template <>'

FAIL: g++.robertl/eb118.C not a specialization (test for errors, line 16)
FAIL: g++.robertl/eb118.C not a specialization (test for errors, line 20)
FAIL: g++.robertl/eb118.C (test for excess errors)



> 
> Martin
> 
> 
> Index: eb118.C
> ===================================================================
> RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb118.C,v
> retrieving revision 1.1
> diff -c -p -r1.1 eb118.C
> *** eb118.C	1998/05/27 23:00:35	1.1
> --- eb118.C	1998/05/28 19:13:56
> *************** A<T>::test(){
> *** 13,23 ****
>     cerr << "test for " << typeid(*this).name() << endl;
>   }
>   // Specialization declaration
> ! void
>   A<double>::test();
>   
>   // Specialization definition
> ! void
>   A<double>::test(){  // ============= LINE 21 ==================
>     cerr << "specialization for " << typeid(*this).name() << endl;
>   }
> --- 13,23 ----
>     cerr << "test for " << typeid(*this).name() << endl;
>   }
>   // Specialization declaration
> ! void                           // ERROR - not a specialization
>   A<double>::test();
>   
>   // Specialization definition
> ! void                           // ERROR - not a specialization
>   A<double>::test(){  // ============= LINE 21 ==================
>     cerr << "specialization for " << typeid(*this).name() << endl;
>   }

-- 
Robert Lipe       http://www.dgii.com/people/robertl       robertl@dgii.com
              (WEB ADDRESS MAY BE TEMPORARILY UNAVAILABLE)




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