[Bug c++/41216] G++ failed to correctly resolve the template parameters.

2009-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-09-01 20:06 --- As a matter of fact, this snippet doesn't link: struct Inner { Inner() : data(0) {} template explicit Inner(IStream&); int data; }; int f() { Inner inner1; Inner inner2(inner1); } Now, as a

[Bug c++/41216] G++ failed to correctly resolve the template parameters.

2009-09-01 Thread yimingli0126 at 163 dot com
--- Comment #1 from yimingli0126 at 163 dot com 2009-09-01 16:16 --- Created an attachment (id=18462) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18462&action=view) The source file rising the compilation failure. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41216