public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98644] New: [concepts] ICE in satisfaction_value, at cp/constraint.cc:2825
@ 2021-01-12 20:42 arthur.j.odwyer at gmail dot com
  2021-01-13 15:19 ` [Bug c++/98644] [10/11 Regression] " ppalka at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: arthur.j.odwyer at gmail dot com @ 2021-01-12 20:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98644
           Summary: [concepts] ICE in satisfaction_value, at
                    cp/constraint.cc:2825
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arthur.j.odwyer at gmail dot com
  Target Milestone: ---

// https://godbolt.org/z/qh1zos
    template<class T> concept Signed = bool(T(1));
    static_assert(Signed<int*>);

Compile with "-std=c++20":

<source>:2:28: internal compiler error: in satisfaction_value, at
cp/constraint.cc:2825
    2 | static_assert(Signed<int*>);
      |                            ^
0x1cc31d9 internal_error(char const*, ...)
        ???:0
0x6b25f7 fancy_abort(char const*, int, char const*)
        ???:0
0x7390d2 evaluate_concept_check(tree_node*, int)
        ???:0
0x7255f4 maybe_constant_value(tree_node*, tree_node*, bool)
        ???:0
0x97ffcd finish_static_assert(tree_node*, tree_node*, unsigned int, bool, bool)
        ???:0

Another very similar ICE, even though the stack trace is different:

    // https://godbolt.org/z/rPn6vd
    bool Signed = requires { requires bool((char *)1); };

<source>:1:35: internal compiler error: in satisfaction_value, at
cp/constraint.cc:2825
    1 | bool Signed = requires { requires bool((char *)1); };
      |                          ~~~~~~~~~^~~~~~~~~~~~~~~
0x1cc31d9 internal_error(char const*, ...)
        ???:0
0x6b25f7 fancy_abort(char const*, int, char const*)
        ???:0
0x737597 tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0

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

end of thread, other threads:[~2023-05-21 15:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 20:42 [Bug c++/98644] New: [concepts] ICE in satisfaction_value, at cp/constraint.cc:2825 arthur.j.odwyer at gmail dot com
2021-01-13 15:19 ` [Bug c++/98644] [10/11 Regression] " ppalka at gcc dot gnu.org
2021-01-13 15:46 ` ppalka at gcc dot gnu.org
2021-01-14 11:20 ` rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2022-03-12 20:02 ` [Bug c++/98644] [10/11/12 " cvs-commit at gcc dot gnu.org
2022-03-12 20:04 ` [Bug c++/98644] [10/11 " ppalka at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-05-21 15:18 ` 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).