Bug with C++ member templates

Mark Stead mark@unico.com.au
Mon Apr 26 01:04:00 GMT 1999


Hi, I am using pgcc-1.1.1 for OS/2 release 2.

I have found a problem with C++ member templates and their use
for copy contructors and assigment operators.

If there is a member templated version of a copy constructor, then the
compiler doesn't see it - and instead just uses memberwise copy
construction.  I believe that it doesn't recognise that the member
template function is actually a valid copy constructor.

I have attached a program to reproduce the problem.

Thankyou for your help.
Mark


--
| // Mark Stead - mark@unico.com.au                             |
| // Hofstadter's Law: "It always takes longer than you expect, |
| // even when you take into account Hofstadter's Law."         |
| // Windows 95 : Busy or Unstable?  Don't ask me, I run OS/2   |



More information about the Gcc-bugs mailing list