public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67380] New: constexpr: Comparison of pointers to member array
@ 2015-08-28  9:04 columbo@gmx-topmail.de
  2015-08-29 15:49 ` [Bug c++/67380] " trippels at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: columbo@gmx-topmail.de @ 2015-08-28  9:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67380

            Bug ID: 67380
           Summary: constexpr: Comparison of pointers to member array
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: columbo@gmx-topmail.de
  Target Milestone: ---

struct A {int arr[3] {1, 2, 3};} constexpr a{};

   static_assert( a.arr != a.arr+3 );

This fails with 20150813, while it shouldn't. [expr.const]/(2.19) states that
the result shall be specified for an application of an equality operator to be
a constant subexpression; And [expr.eq]/2 clearly makes this specified, such
that the assertion shouldn't fire.


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

* [Bug c++/67380] constexpr: Comparison of pointers to member array
  2015-08-28  9:04 [Bug c++/67380] New: constexpr: Comparison of pointers to member array columbo@gmx-topmail.de
@ 2015-08-29 15:49 ` trippels at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-29 15:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67380

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |trippels at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup.

*** This bug has been marked as a duplicate of bug 67376 ***


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

end of thread, other threads:[~2015-08-29 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-28  9:04 [Bug c++/67380] New: constexpr: Comparison of pointers to member array columbo@gmx-topmail.de
2015-08-29 15:49 ` [Bug c++/67380] " trippels 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).