[Bug c++/15672] wierd error reported

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Fri May 28 19:06:00 GMT 2004


------- Additional Comments From igodard at pacbell dot net  2004-05-28 01:44 -------
Giovanni - thanks for the tip:
[Another way to fix this (instead of adding a level 
of parenthesis) is using the syntax "A a = x;" or "A a = A(x);" to construct 
the object, instead of "A a(x);". 
]

However, that approach requires a copy constructor to be visible, even if optimized away. I think :-)

Ivan

-- 


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



More information about the Gcc-bugs mailing list