This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50087] [C++0x] Weird optimization anomaly with constexpr


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]