public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94827] New: [ICE] [regression] crash on requires clause in tparam list
@ 2020-04-28 17:37 eric.niebler at gmail dot com
  2020-04-28 19:06 ` [Bug c++/94827] [10 Regression] " nathan at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: eric.niebler at gmail dot com @ 2020-04-28 17:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94827
           Summary: [ICE] [regression] crash on requires clause in tparam
                    list
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eric.niebler at gmail dot com
  Target Milestone: ---

Try the following code with -std=c++2a

template <typename T,
  bool = requires { requires (sizeof(T)==0); } >
void foo(T) {}

The result:

<source>:20:44: internal compiler error: tree check: accessed elt 1 of
'tree_vec' with 0 elts in map_arguments, at cp/constraint.cc:553
   20 |   bool = requires { requires (sizeof(T)==0); } >
      |                                            ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1

This compiles with gcc-9 with -std=c++2a -fconcepts, so this is a regression.

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

end of thread, other threads:[~2020-05-04 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 17:37 [Bug c++/94827] New: [ICE] [regression] crash on requires clause in tparam list eric.niebler at gmail dot com
2020-04-28 19:06 ` [Bug c++/94827] [10 Regression] " nathan at gcc dot gnu.org
2020-04-29  6:57 ` rguenth at gcc dot gnu.org
2020-04-29  7:17 ` [Bug c++/94827] [10 Regression] crash on requires clause in tparam list since r10-4424 jakub at gcc dot gnu.org
2020-04-30 13:50 ` nathan at gcc dot gnu.org
2020-04-30 14:37 ` nathan at gcc dot gnu.org
2020-04-30 15:28 ` [Bug c++/94827] " nathan at gcc dot gnu.org
2020-05-04 17:03 ` nathan 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).