This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55986] RHS of logical operators may render LHS unevaluated in constant-expression
- From: "potswa at mac dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Jan 2013 04:47:53 +0000
- Subject: [Bug c++/55986] RHS of logical operators may render LHS unevaluated in constant-expression
- Auto-submitted: auto-generated
- References: <bug-55986-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55986
--- Comment #1 from David Krauss <potswa at mac dot com> 2013-01-15 04:47:53 UTC ---
Passing `-O2` additionally causes it to skip a condition like `(i == 0 || i !=
0)`, so it looks like a general issue with expression simplification bypassing
ODR-use.