This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53181] static_assert sees as non constant the comparison between a constexpr and a template argument
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 14:45:00 +0000
- Subject: [Bug c++/53181] static_assert sees as non constant the comparison between a constexpr and a template argument
- Auto-submitted: auto-generated
- References: <bug-53181-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53181
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-18 14:45:00 UTC ---
In the case of wrong_string, fold_comparison (called from cp_build_binary_op
via fold_if_not_in_template) cannot fold the comparison to a constant: base0 !=
base1. Most likely the issue is that we shouldn't end up passing such pointers.