------- Comment #3 from gcc at razorcam dot com 2010-06-03 23:04 ------- Thanks for your answers. From the above answers I understand that g++ respects the ISO c++ standard, and thus you can consider this is not a bug. But this is clearly an explicit call of the copy constructor, not an implicit one. That means that the fundamental concept of function composition is not respected here by the ISO standard only when you compose the same constructor function and silently so this is very error-prone. I guess i have to submit a bug report to the ISO C++ standard now ...
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44409