From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joao Belo To: "'egcs-bugs@egcs.cygnus.com'" Subject: bug report Date: Wed, 30 Jun 1999 23:07:00 -0000 Message-id: <01BEB43C.5AE7CA10.jbelo@isel.pt> X-SW-Source: 1999-06n/msg00328.html List-Id: Hello, with the code: template class X { public: X(); template X(X& a); }; char s[] = "a"; int main() { X x1; X x2(x1); } egcs reports: g.cc: In function `int main()': g.cc:14: no matching function for call to `X::X (X &)' g.cc:14: candidates are: X::X(const X &) g.cc:5: X::X() and with the code: template struct A { struct B; }; template struct A::B { B(T); operator A::B(); }; int main() { A::B i(10); A::B c('a'); c = i; } egcs reports: i.cc:10: warning: conversion to the same type will never use a type conversion operator i.cc: In function `int main()': i.cc:17: no match for `A::B & = A::B &' i.cc:16: candidates are: A::B::operator =(const A::B &) egcs version: gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) Joao Belo