This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15672] wierd error reported
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2004 01:44:50 -0000
- Subject: [Bug c++/15672] wierd error reported
- References: <20040527054618.15672.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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