public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104410] New: Internal error using default-initialized constexpr bool in requires clause
@ 2022-02-06 17:20 oliver.rosten at googlemail dot com
  2022-02-06 23:36 ` [Bug c++/104410] [11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: oliver.rosten at googlemail dot com @ 2022-02-06 17:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104410
           Summary: Internal error using default-initialized constexpr
                    bool in requires clause
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: oliver.rosten at googlemail dot com
  Target Milestone: ---

#include <type_traits>

template<class T>
constexpr bool use_func_v{};

// Using this instead is fine!
//template<class T>
//constexpr bool use_func_v{false};

struct func_obj
{
    template<class T>
        requires use_func_v<T>
    void operator()(T, T) const
    {}
};

constexpr bool bar{std::is_invocable_v<func_obj, char, char>};

----> internal error, see

https://godbolt.org/z/qsbPYq67a

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

end of thread, other threads:[~2022-02-08 17:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-06 17:20 [Bug c++/104410] New: Internal error using default-initialized constexpr bool in requires clause oliver.rosten at googlemail dot com
2022-02-06 23:36 ` [Bug c++/104410] [11/12 Regression] " pinskia at gcc dot gnu.org
2022-02-06 23:39 ` pinskia at gcc dot gnu.org
2022-02-06 23:53 ` pinskia at gcc dot gnu.org
2022-02-07  8:56 ` rguenth at gcc dot gnu.org
2022-02-07 14:31 ` ppalka at gcc dot gnu.org
2022-02-08 14:12 ` cvs-commit at gcc dot gnu.org
2022-02-08 14:13 ` [Bug c++/104410] [11 " ppalka at gcc dot gnu.org
2022-02-08 17:33 ` cvs-commit at gcc dot gnu.org
2022-02-08 17:58 ` ppalka 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).