This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12323] Constructor accepts wrong argument type silently


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]