This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53181] New: static_assert sees as non constant the comparison between a constexpr and a template argument
- From: "blaffablaffa at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 May 2012 00:00:41 +0000
- Subject: [Bug c++/53181] New: static_assert sees as non constant the comparison between a constexpr and a template argument
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53181
Bug #: 53181
Summary: static_assert sees as non constant the comparison
between a constexpr and a template argument
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: blaffablaffa@gmail.com
Created attachment 27278
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27278
test case
As per title.
The weird is that it seems that the constexpr-ness seems to changes if the
expression inside static_assert evaluates to true (compiles, expression seen as
constexpr) or false (fails to compile, but not due to the assertion failing but
to the described error).