public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96576] New: ICE when decltype std::index_sequence
@ 2020-08-12  2:36 hewillk at gmail dot com
  2020-08-12  7:47 ` [Bug c++/96576] " marxin at gcc dot gnu.org
  2020-08-12 12:25 ` ppalka at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: hewillk at gmail dot com @ 2020-08-12  2:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96576
           Summary: ICE when decltype std::index_sequence
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <utility>

auto operator|(auto S, auto) {
  return S;
}

int main()
{
  decltype(std::index_sequence<0>{} | 0 | 0);
}

gives:

<source>: In function 'int main()':
<source>:9:43: internal compiler error: in build_over_call, at cp/call.c:8994
    9 |   decltype(std::index_sequence<0>{} | 0 | 0);
      |                                           ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

(https://godbolt.org/z/8ezT44)

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

* [Bug c++/96576] ICE when decltype std::index_sequence
  2020-08-12  2:36 [Bug c++/96576] New: ICE when decltype std::index_sequence hewillk at gmail dot com
@ 2020-08-12  7:47 ` marxin at gcc dot gnu.org
  2020-08-12 12:25 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-12  7:47 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org,
                   |                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-08-12

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, the code is accepted by clang.

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

* [Bug c++/96576] ICE when decltype std::index_sequence
  2020-08-12  2:36 [Bug c++/96576] New: ICE when decltype std::index_sequence hewillk at gmail dot com
  2020-08-12  7:47 ` [Bug c++/96576] " marxin at gcc dot gnu.org
@ 2020-08-12 12:25 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-08-12 12:25 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

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

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
This appears to be a dup of PR95675.

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

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

end of thread, other threads:[~2020-08-12 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12  2:36 [Bug c++/96576] New: ICE when decltype std::index_sequence hewillk at gmail dot com
2020-08-12  7:47 ` [Bug c++/96576] " marxin at gcc dot gnu.org
2020-08-12 12:25 ` 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).