--- Comment #7 from yimingli0126 at 163 dot com 2009-09-02 10:33 ---
Thanks.
I have added explicit copy constructors both Inner(Inner const&) and
Inner(Inner&) to the class Inner, which are superior to template < class
IStream > Inner (IStream&) when the complier de
--- Comment #5 from yimingli0126 at 163 dot com 2009-09-02 06:59 ---
(In reply to comment #4)
> Actually, a library issue, invalid, still library.
Many thanks for your reply.
Yes, it could be a library issue and this problem occurred since v4.3.x.
MSVC 8.0/9.0 doesn't h
--- 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
'Outter::Outter(IStream&) [with
IStream = std::istream]'
..\Src\TestMinGW.cpp:40: instantiated from here
..\Src\TestMinGW.cpp:16: error: no match for 'operator>>' in 'in >>
inner->Inner::data'
Build error occurred, build is stopped
Time consumed: 500 ms.
--
Summary: G++ failed to correctly resolve the template parameters.
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yimingli0126 at 163 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41216