This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12367] Incorrect code generation for meta/expression templates
- From: "opetzold at wit dot regiocom dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Sep 2003 08:14:58 -0000
- Subject: [Bug c++/12367] Incorrect code generation for meta/expression templates
- References: <20030922150454.12367.opetzold@wit.regiocom.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12367
------- Additional Comments From opetzold at wit dot regiocom dot net 2003-09-25 08:14 -------
Hello,
how can I solve the problem? A simple change of XprMatrix's private data to:
template<class E, unsigned Rows, unsigned Cols>
struct XprMatrix
{
explicit XprMatrix(const E& e) : m_expr(e) { }
[ ... ]
E m_expr;
};
doesn't solve the problem. The prod function uses XprMatrix's copy constructor
without a reference now - or I'm wrong?
Thanks
Olaf