public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99874] New: ICE Segmentation fault when declared variable template of template lambda
@ 2021-04-01 18:35 hewillk at gmail dot com
  2021-04-01 21:18 ` [Bug c++/99874] [11 Regression] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2021-04-01 18:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99874
           Summary: ICE Segmentation fault when declared variable template
                    of template lambda
           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: ---

https://godbolt.org/z/4fxhP6jf9

template <int>
auto l = []<int x> requires requires { x; } {};

int main() {
  l<0>.template operator()<0>();
}


<source>:2:40: internal compiler error: Segmentation fault
    2 | auto l = []<int x> requires requires { x; } {};
      |                                        ^
0x1cfca39 internal_error(char const*, ...)
        ???:0
0x917a92 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x73f042 tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x73f08a constraints_satisfied_p(tree_node*, tree_node*)
        ???:0
0x954d48 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node*
const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool,
bool)
        ???:0
0x6ded59 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ???:0
0x8e126d c_parse_file()
        ???:0
0xa60292 c_common_parse_file()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.

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

end of thread, other threads:[~2021-04-08 18:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 18:35 [Bug c++/99874] New: ICE Segmentation fault when declared variable template of template lambda hewillk at gmail dot com
2021-04-01 21:18 ` [Bug c++/99874] [11 Regression] " mpolacek at gcc dot gnu.org
2021-04-03 17:15 ` ppalka at gcc dot gnu.org
2021-04-08 17:11 ` cvs-commit at gcc dot gnu.org
2021-04-08 18:41 ` 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).