This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
eb103
- To: egcs-patches at cygnus dot com
- Subject: eb103
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 30 May 1998 14:36:39 +0200
This is illegal C++, and egcs detects that.
Index: eb103.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb103.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb103.C
*** eb103.C 1998/05/27 23:00:35 1.1
--- eb103.C 1998/05/30 12:33:57
*************** template <int nlimb, int i>
*** 5,11 ****
inline unsigned f (unsigned* ptr);
template <int nlimb>
inline unsigned f<nlimb,nlimb> (unsigned* ptr)
! {
return 1;
}
--- 5,11 ----
inline unsigned f (unsigned* ptr);
template <int nlimb>
inline unsigned f<nlimb,nlimb> (unsigned* ptr)
! { //ERROR - partial specialization of function?
return 1;
}