public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53181] New: static_assert sees as non constant the comparison between a constexpr and a template argument
@ 2012-05-02  0:00 blaffablaffa at gmail dot com
  2012-05-12 22:47 ` [Bug c++/53181] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: blaffablaffa at gmail dot com @ 2012-05-02  0:00 UTC (permalink / raw)
  To: gcc-bugs

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).


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-04 11:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-02  0:00 [Bug c++/53181] New: static_assert sees as non constant the comparison between a constexpr and a template argument blaffablaffa at gmail dot com
2012-05-12 22:47 ` [Bug c++/53181] " paolo.carlini at oracle dot com
2012-10-18 14:45 ` paolo.carlini at oracle dot com
2014-11-17 20:37 ` jason at gcc dot gnu.org
2021-08-04  8:42 ` pinskia at gcc dot gnu.org
2021-08-04 11:28 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).