[Bug c++/12367] Incorrect code generation for meta/expression templates

opetzold at wit dot regiocom dot net gcc-bugzilla@gcc.gnu.org
Thu Sep 25 11:01:00 GMT 2003


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



More information about the Gcc-bugs mailing list