This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12323] Constructor accepts wrong argument type silently
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2003 01:31:27 -0000
- Subject: [Bug c++/12323] Constructor accepts wrong argument type silently
- References: <20030918012028.12323.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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?