public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97994] New: [11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183
@ 2020-11-25 17:09 gscfq@t-online.de
  2020-11-26 10:08 ` [Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gscfq@t-online.de @ 2020-11-25 17:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97994
           Summary: [11 Regression] ICE in nothrow_spec_p, at
                    cp/except.c:1183
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20200621 and 20200628 :


$ cat z1.cc
struct S;
template <class T> void foo () noexcept (T::v);
template <class ...A>
void bar (void (A...) noexcept)
{ bar (foo<S>); }


$ g++-11-20200621 -c z1.cc
$
$ g++-11-20201122 -c z1.cc
z1.cc: In substitution of 'template<class ... A> void bar(void (*)(A ...)
noexcept) [with A = <missing>]':
z1.cc:5:14:   required from here
z1.cc:5:14: internal compiler error: in nothrow_spec_p, at cp/except.c:1183
    5 | { bar (foo<S>); }
      |              ^
0x6de2d7 nothrow_spec_p(tree_node const*)
        ../../gcc/cp/except.c:1183
0x770333 unify
        ../../gcc/cp/pt.c:23799
0x76f313 unify
        ../../gcc/cp/pt.c:23888
0x7707cc try_one_overload
        ../../gcc/cp/pt.c:22522
0x76e5f5 resolve_overloaded_unification
        ../../gcc/cp/pt.c:22286
0x76e5f5 unify_one_argument
        ../../gcc/cp/pt.c:21832
0x77b3b6 type_unification_real
        ../../gcc/cp/pt.c:21976
0x7840eb fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node*
const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool,
bool)
        ../../gcc/cp/pt.c:21345
0x65315c add_template_candidate_real
        ../../gcc/cp/call.c:3431
0x6537ec add_template_candidate
        ../../gcc/cp/call.c:3519
0x6537ec add_candidates
        ../../gcc/cp/call.c:5929
0x657881 add_candidates
        ../../gcc/cp/call.c:4561
0x657881 perform_overload_resolution
        ../../gcc/cp/call.c:4561
0x65c372 build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ../../gcc/cp/call.c:4635
0x796810 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ../../gcc/cp/semantics.c:2703
0x73f005 cp_parser_postfix_expression
        ../../gcc/cp/parser.c:7556
0x7471b5 cp_parser_unary_expression
        ../../gcc/cp/parser.c:8659
0x7211ff cp_parser_cast_expression
        ../../gcc/cp/parser.c:9562
0x721a32 cp_parser_binary_expression
        ../../gcc/cp/parser.c:9664
0x7231c0 cp_parser_assignment_expression
        ../../gcc/cp/parser.c:9968

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

* [Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc
  2020-11-25 17:09 [Bug c++/97994] New: [11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 gscfq@t-online.de
@ 2020-11-26 10:08 ` marxin at gcc dot gnu.org
  2020-11-26 10:12 ` rguenth at gcc dot gnu.org
  2021-02-04  1:55 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-26 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
            Summary|[11 Regression] ICE in      |[8/9/10/11 Regression] ICE
                   |nothrow_spec_p, at          |in nothrow_spec_p, at
                   |cp/except.c:1183            |cp/except.c:1183 since
                   |                            |r7-4383-g51dc660315ef83dc
   Last reconfirmed|                            |2020-11-26
     Ever confirmed|0                           |1
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
With -std=c++17 it started with r7-4383-g51dc660315ef83dc.

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

* [Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc
  2020-11-25 17:09 [Bug c++/97994] New: [11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 gscfq@t-online.de
  2020-11-26 10:08 ` [Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc marxin at gcc dot gnu.org
@ 2020-11-26 10:12 ` rguenth at gcc dot gnu.org
  2021-02-04  1:55 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-26 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0
           Priority|P3                          |P2

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

* [Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc
  2020-11-25 17:09 [Bug c++/97994] New: [11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 gscfq@t-online.de
  2020-11-26 10:08 ` [Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc marxin at gcc dot gnu.org
  2020-11-26 10:12 ` rguenth at gcc dot gnu.org
@ 2021-02-04  1:55 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-02-04  1:55 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|NEW                         |RESOLVED
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed by my r11-6476.

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

end of thread, other threads:[~2021-02-04  1:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 17:09 [Bug c++/97994] New: [11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 gscfq@t-online.de
2020-11-26 10:08 ` [Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc marxin at gcc dot gnu.org
2020-11-26 10:12 ` rguenth at gcc dot gnu.org
2021-02-04  1:55 ` mpolacek 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).