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

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).