Bug in Gcc 3.1.1 - template member not recognized inside function argument list (without full qualification)
Davin McCall
davmac@ozonline.com.au
Tue Aug 13 07:37:00 GMT 2002
Hi,
I have discovered what I think is a minor bug in the c++ compiler. Test program is attached and full details follow, however the crux is this:
When a class "A" has a template member function (f1), and that function is used as an argument to some other template function (f2), then the type of f1 it is not properly recognised and the code is not allowed.
Compiler version: 3.1.1
Command line used: g++ -c test.cc
System: i686-pc-linux-gnu, linux kernel version 2.4.18
"Configure" options used when installing compiler:
--prefix=/package/gcc-3.1.1 --with-gnu-as --with-gnu-ld --enable-threads=posix
--enable-languages=c,c++ --disable-nls
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cc
Type: text/x-c++
Size: 432 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020813/fee7f965/attachment.bin>
More information about the Gcc-bugs
mailing list