This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50087] [C++0x] Weird optimization anomaly with constexpr
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Sep 2011 00:48:25 +0000
- Subject: [Bug c++/50087] [C++0x] Weird optimization anomaly with constexpr
- Auto-submitted: auto-generated
- References: <bug-50087-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50087
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-03 00:48:25 UTC ---
(In reply to comment #5)
> I still think it's a missed optimization opportunity.
Yes, it definitely is. I'm just not sure whether it should be fixed by doing
constexpr expansion in non-constant expression contexts in some cases, or
improving normal optimization to handle this case.