------- Comment #2 from pinskia at gcc dot gnu dot org  2008-11-21 01:26 -------
This errors out in 4.3.2 and above:
t.cc: In function 'bar makeBar()':
t.cc:12: error: no matching function for call to 'bar::bar(bar)'
t.cc:8: note: candidates are: bar::bar(bar&)
t.cc:7: note:                 bar::bar(const foo&)
t.cc:12: error:   initializing argument 1 of 'foo::foo(T) [with T = bar]'


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38206

Reply via email to