This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
tolower in template functions
- To: egcs-bugs at cygnus dot com
- Subject: tolower in template functions
- From: Alexander Favorov <favorov at sensi dot org>
- Date: Sun, 16 Aug 1998 04:46:22 +0400
Hi!
Any attempt to use tolower or toupper
in templated functions gives suc a text:
uu.cpp:7: sorry, not implemented: initializer contains unrecognized tree code
The source was:
*******************************************************
#include <ctype.h>
template <int WL>
char retTolowerChar(char a)
{
char b;
b=tolower(a); // Line 7
return b;
}
*******************************************************
It can be overcomed by redefinning tolower and toupper,
but does not seem to be right way.
WBR, Alexander.