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]

tolower in template functions


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. 



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