public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95629] New: consteval operator== crashes compiler
@ 2020-06-10 21:38 tobias.bruell at gmail dot com
  2020-06-10 22:52 ` [Bug c++/95629] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tobias.bruell at gmail dot com @ 2020-06-10 21:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95629
           Summary: consteval operator== crashes compiler
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tobias.bruell at gmail dot com
  Target Milestone: ---

This also crashed in g++10 v10.1.0 for me.



#include <type_traits>

template<typename T>
struct hana {
  template<typename U>
  consteval bool operator==(hana<U>) {
    return std::is_same_v<T, U>;
  }
};

int main ()
{
  static_assert(hana<int>{} == hana<int>{});
}

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

end of thread, other threads:[~2020-06-28 23:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 21:38 [Bug c++/95629] New: consteval operator== crashes compiler tobias.bruell at gmail dot com
2020-06-10 22:52 ` [Bug c++/95629] " mpolacek at gcc dot gnu.org
2020-06-10 22:57 ` iains at gcc dot gnu.org
2020-06-14 18:04 ` johelegp at gmail dot com
2020-06-23 15:42 ` mpolacek at gcc dot gnu.org
2020-06-28 23:00 ` mpolacek 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).