Package: g++-2.95 Version: 1:2.95.4-9 Severity: important $ cat <<EOF > test.C class base { }; // error occurs only using template classes and virtual inheritance! template <class Element> class templateClass : public virtual base { public: templateClass() {} templateClass( const templateClass<Element> &ref ) {} };
templateClass<int> getStuff() { templateClass<int> obj; return obj; } int main() { return 0; } EOF $ g++ test.C test.C: In function `class templateClass<int> getStuff()': test.C:12: no matching function for call to `templateClass<int>::templateClass (templateClass<int> &)' test.C:6: candidates are: templateClass<int>::templateClass() g++ 3.1.1-0pre2 and 2.95-2 produces no error. Also reported in http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&selm=9ic4fc%2435e%40news.Informatik.Uni-Oldenburg.DE a year ago but no one seems to be reacting. Versions of the packages g++-2.95 depends on: ii g++ 2.95.4-15 The GNU C++ compiler. ii gcc-2.95 2.95.4-9 The GNU C compiler. ii libc6 2.2.5-6 GNU C Library: Shared libraries and Timezone ii libstdc++2.10- 2.95.4-7 The GNU stdc++ library (development files) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]