This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18049] wrong result without -O2 with g++-3.4.2 and completely wrong result with any other g++ version
- From: "dkouroun at mailbox dot gr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2004 20:07:24 -0000
- Subject: [Bug c++/18049] wrong result without -O2 with g++-3.4.2 and completely wrong result with any other g++ version
- References: <20041018200156.18049.dkouroun@mailbox.gr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dkouroun at mailbox dot gr 2004-10-18 20:07 -------
Created an attachment (id=7371)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7371&action=view)
source code(important files: FEMmain.cc, Elements.h )
This is the source code. It uses expression templates.
typedef typeof(dx(u)*dx(v)) dxType
dxType A = dx(u)*dx(v) influences the output of an object
which has nothing to do with A;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18049