[Bug c++/12323] Constructor accepts wrong argument type silently
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 18 03:32:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12323
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-18 01:31 -------
I get an error with every version of GCC I tried from 2.95.3 to the mainline:
foo.cc: In function `int main()':
foo.cc:25: error: no matching function for call to `Foo<int, Bar<Baz> >::Foo(int, Bob)'
foo.cc:2: note: candidates are: Foo<int, Bar<Baz> >::Foo(const Foo<int, Bar<Baz> >&)
foo.cc:4: note: Foo<I, P>::Foo(I, P) [with I = int, P = Bar<Baz>]
What was you expecting?
More information about the Gcc-bugs
mailing list