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]
Other format: [Raw text]

Bug in Gcc 3.1.1 - template member not recognized inside function argument list (without full qualification)


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

Attachment: test.cc
Description: Binary data


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