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

2009-09-02 Thread yimingli0126 at 163 dot com
--- 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 decides which should be

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

2009-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2009-09-02 09:48 --- Note: probably the old behavior will be restored in 4.5 as a side effect of other changes, but this type of code plays very risky games and even if it compiles, can well lead to wrong runtime behavior. Thus I d

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

2009-09-01 Thread yimingli0126 at 163 dot com
--- 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 have this proble

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

2009-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-09-01 20:07 --- Actually, a library issue, invalid, still library. -- paolo dot carlini at oracle dot com changed: What|Removed |Added ---

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

2009-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2009-09-01 17:07 --- Seems a problem with the stricter uninitialized_copy we have got since 4.3... Investigating. -- paolo dot carlini at oracle dot com changed: What|Removed |Added -