This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15672] wierd error reported


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]