This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70444] Optimizer removes expression template
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2016 09:44:43 +0000
- Subject: [Bug c++/70444] Optimizer removes expression template
- Auto-submitted: auto-generated
- References: <bug-70444-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70444
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Yes.
Making e.g.:
const Left & left;
an object is one way to fix the undefined behavior:
const Left left;