This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Debug checks and constexpr
- From: FranÃois Dumont <frs dot dumont at gmail dot com>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 12 Jan 2015 22:23:38 +0100
- Subject: Debug checks and constexpr
- Authentication-results: sourceware.org; auth=none
Hi
With recent additions of _GLIBCXX14_CONSTEXPR on a number of algos
came regressions in debug mode. This is not the first time we have this
kind of issue and surely won't be the last.
So I can only think about one way to make it work. We should be
able to tell the compiler to ignore debug checks when called in a const
expression context. Is there already a way to do so ? If not is there
any plan to do something similar ? Or anyone can think of a different
way to deal with this problem ?
FranÃois