public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486
@ 2020-04-03 18:20 asolokha at gmx dot com
  2020-04-06  6:33 ` [Bug c++/94478] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2020-04-03 18:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94478
           Summary: [10 Regression] ICE in comptypes, at cp/typeck.c:1486
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

g++-10.0.1-alpha20200329 snapshot (g:60c254b279e8e8443b8ad26cc46b9e4084cff66c)
ICEs when compiling the following testcase, extracted from
test/CXX/class/class.compare/class.compare.default/p1.cpp from the clang 10.0.0
test suite, w/ -std=c++2a:

struct B {};
bool operator==(const B&, const B&) = default;

% g++-10.0.1 -std=c++2a -c kknpryrr.cpp
kknpryrr.cpp:2:39: internal compiler error: in comptypes, at cp/typeck.c:1486
    2 | bool operator==(const B&, const B&) = default;
      |                                       ^~~~~~~
0x68caf4 comptypes(tree_node*, tree_node*, int)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/typeck.c:1486
0x965416 early_check_defaulted_comparison
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/method.c:1133
0x965416 defaultable_fn_check(tree_node*)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/method.c:2997
0x90e088 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/decl.c:7554
0x9b878b cp_parser_init_declarator
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:20909
0x998b56 cp_parser_simple_declaration
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13731
0x9c3302 cp_parser_declaration
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13430
0x9c3a9f cp_parser_translation_unit
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:4731
0x9c3a9f c_parse_file()
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:43944
0xadbadb c_common_parse_file()
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/c-family/c-opts.c:1186

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

* [Bug c++/94478] [10 Regression] ICE in comptypes, at cp/typeck.c:1486
  2020-04-03 18:20 [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 asolokha at gmx dot com
@ 2020-04-06  6:33 ` rguenth at gcc dot gnu.org
  2020-04-06  6:51 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-04-06  6:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.0

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

* [Bug c++/94478] [10 Regression] ICE in comptypes, at cp/typeck.c:1486
  2020-04-03 18:20 [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 asolokha at gmx dot com
  2020-04-06  6:33 ` [Bug c++/94478] " rguenth at gcc dot gnu.org
@ 2020-04-06  6:51 ` marxin at gcc dot gnu.org
  2020-04-07 16:55 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-06  6:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2020-04-06
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r10-4397-gb7689b962dd6536b.

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

* [Bug c++/94478] [10 Regression] ICE in comptypes, at cp/typeck.c:1486
  2020-04-03 18:20 [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 asolokha at gmx dot com
  2020-04-06  6:33 ` [Bug c++/94478] " rguenth at gcc dot gnu.org
  2020-04-06  6:51 ` marxin at gcc dot gnu.org
@ 2020-04-07 16:55 ` mpolacek at gcc dot gnu.org
  2020-04-08 12:56 ` cvs-commit at gcc dot gnu.org
  2020-04-08 12:57 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-04-07 16:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/94478] [10 Regression] ICE in comptypes, at cp/typeck.c:1486
  2020-04-03 18:20 [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2020-04-07 16:55 ` mpolacek at gcc dot gnu.org
@ 2020-04-08 12:56 ` cvs-commit at gcc dot gnu.org
  2020-04-08 12:57 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-08 12:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:a6479aa4c0532ee9ad1f098b4e82de9dc684e036

commit r10-7619-ga6479aa4c0532ee9ad1f098b4e82de9dc684e036
Author: Marek Polacek <polacek@redhat.com>
Date:   Tue Apr 7 14:24:52 2020 -0400

    c++: ICE with defaulted comparison operator [PR94478]

    Here we ICE because early_check_defaulted_comparison passed a null
    ctx to same_type_p.  The attached test is ill-formed according to
    [class.compare.default]/1, so fixed by detecting this case early.

            PR c++/94478 - ICE with defaulted comparison operator
            * method.c (early_check_defaulted_comparison): Give an error when
the
            context is null.

            * g++.dg/cpp2a/spaceship-err4.C: New test.

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

* [Bug c++/94478] [10 Regression] ICE in comptypes, at cp/typeck.c:1486
  2020-04-03 18:20 [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2020-04-08 12:56 ` cvs-commit at gcc dot gnu.org
@ 2020-04-08 12:57 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-04-08 12:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 18:20 [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 asolokha at gmx dot com
2020-04-06  6:33 ` [Bug c++/94478] " rguenth at gcc dot gnu.org
2020-04-06  6:51 ` marxin at gcc dot gnu.org
2020-04-07 16:55 ` mpolacek at gcc dot gnu.org
2020-04-08 12:56 ` cvs-commit at gcc dot gnu.org
2020-04-08 12:57 ` 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).