public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102261] New: [12 Regression] ICE: Segmentation fault (in build_this_conversion)
@ 2021-09-09 16:03 asolokha at gmx dot com
  2021-09-10  7:46 ` [Bug c++/102261] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2021-09-09 16:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102261
           Summary: [12 Regression] ICE: Segmentation fault (in
                    build_this_conversion)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: error-recovery, 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: ---
            Target: x86_64-unknown-linux-gnu

g++-12.0.0-alpha20210905 snapshot (g:a827909537cf085e5673ca7816b7bd7151d89fc5)
ICEs when compiling the following testcase, extracted from
gcc/testsuite/gcc.target/i386/pr80173.c:

typedef int V __attribute__ ((vector_size (2 * sizeof (int))));

struct U { V a; V b; };

int
bar (int i)
{
  register struct U u asm ("xmm7");
  u = (struct U) {{-1, 0}, {-1, 0}};
  return u.b[i];
}

% x86_64-unknown-linux-gnu-g++-12.0.0 -c lfxfq1vi.cc
lfxfq1vi.cc: In function 'int bar(int)':
lfxfq1vi.cc:9:35: error: address of explicit register variable 'u' requested
    9 |   u = (struct U) {{-1, 0}, {-1, 0}};
      |                                   ^
lfxfq1vi.cc:9:35: internal compiler error: Segmentation fault
0x1143d7f crash_signal
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/toplev.c:328
0x915231 build_this_conversion
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/call.c:2291
0x915e53 add_function_candidate
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/call.c:2464
0x917186 add_candidates
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/call.c:6207
0x92648f add_candidates
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/call.c:6076
0x92648f add_operator_candidates
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/call.c:6361
0x92677e build_new_op_1
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/call.c:6569
0x9275dd build_new_op(op_location_t const&, tree_code, int, tree_node*,
tree_node*, tree_node*, tree_node**, int)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/call.c:6957
0xb8ceff cp_build_modify_expr(unsigned int, tree_node*, tree_code, tree_node*,
int)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/typeck.c:8936
0xb8d92c build_x_modify_expr(unsigned int, tree_node*, tree_code, tree_node*,
int)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/typeck.c:9201
0xa8595a cp_parser_assignment_expression
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:10242
0xa870f2 cp_parser_expression
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:10371
0xa8a918 cp_parser_expression_statement
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:12564
0xa96d0a cp_parser_statement
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:12360
0xa97dcd cp_parser_statement_seq_opt
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:12712
0xa97ea8 cp_parser_compound_statement
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:12661
0xab86c0 cp_parser_function_body
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:24854
0xab86c0 cp_parser_ctor_initializer_opt_and_function_body
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:24905
0xab944a cp_parser_function_definition_after_declarator
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:31016
0xaba78b cp_parser_function_definition_from_specifiers_and_declarator
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210905/work/gcc-12-20210905/gcc/cp/parser.c:30932

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

* [Bug c++/102261] [12 Regression] ICE: Segmentation fault (in build_this_conversion)
  2021-09-09 16:03 [Bug c++/102261] New: [12 Regression] ICE: Segmentation fault (in build_this_conversion) asolokha at gmx dot com
@ 2021-09-10  7:46 ` rguenth at gcc dot gnu.org
  2021-09-10  7:51 ` [Bug c++/102261] [12 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502 marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-10  7:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-09-10
     Ever confirmed|0                           |1
   Target Milestone|---                         |12.0
      Known to work|                            |11.2.1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.

2289      conversion *t = implicit_conversion (parmtype, argtype, arg,
2290                                           /*c_cast_p=*/false, flags,
complain);
2291      t->this_p = this_p;
2292      return t;
2293    }
2294
2295    /* Create an overload candidate for the function or method FN called
(gdb) p t
$1 = (conversion *) 0x0

note I'm not sure the particular error is very helpful.  Why do we even
support asm("...") on aggregate types?

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

* [Bug c++/102261] [12 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502
  2021-09-09 16:03 [Bug c++/102261] New: [12 Regression] ICE: Segmentation fault (in build_this_conversion) asolokha at gmx dot com
  2021-09-10  7:46 ` [Bug c++/102261] " rguenth at gcc dot gnu.org
@ 2021-09-10  7:51 ` marxin at gcc dot gnu.org
  2022-01-20 10:16 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-10  7:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[12 Regression] ICE:        |[12 Regression] ICE:
                   |Segmentation fault (in      |Segmentation fault (in
                   |build_this_conversion)      |build_this_conversion)
                   |                            |since
                   |                            |r12-3346-g47543e5f9d1fc502
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |ppalka at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-3346-g47543e5f9d1fc502, it was rejected before the revision.

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

* [Bug c++/102261] [12 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502
  2021-09-09 16:03 [Bug c++/102261] New: [12 Regression] ICE: Segmentation fault (in build_this_conversion) asolokha at gmx dot com
  2021-09-10  7:46 ` [Bug c++/102261] " rguenth at gcc dot gnu.org
  2021-09-10  7:51 ` [Bug c++/102261] [12 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502 marxin at gcc dot gnu.org
@ 2022-01-20 10:16 ` rguenth at gcc dot gnu.org
  2022-05-06  8:30 ` [Bug c++/102261] [12/13 " jakub at gcc dot gnu.org
  2023-05-08 12:22 ` [Bug c++/102261] [12/13/14 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-20 10:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

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

* [Bug c++/102261] [12/13 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502
  2021-09-09 16:03 [Bug c++/102261] New: [12 Regression] ICE: Segmentation fault (in build_this_conversion) asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-01-20 10:16 ` rguenth at gcc dot gnu.org
@ 2022-05-06  8:30 ` jakub at gcc dot gnu.org
  2023-05-08 12:22 ` [Bug c++/102261] [12/13/14 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-06  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.0                        |12.2

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 12.1 is being released, retargeting bugs to GCC 12.2.

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

* [Bug c++/102261] [12/13/14 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502
  2021-09-09 16:03 [Bug c++/102261] New: [12 Regression] ICE: Segmentation fault (in build_this_conversion) asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2022-05-06  8:30 ` [Bug c++/102261] [12/13 " jakub at gcc dot gnu.org
@ 2023-05-08 12:22 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-08 12:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.3                        |12.4

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 12.3 is being released, retargeting bugs to GCC 12.4.

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

end of thread, other threads:[~2023-05-08 12:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09 16:03 [Bug c++/102261] New: [12 Regression] ICE: Segmentation fault (in build_this_conversion) asolokha at gmx dot com
2021-09-10  7:46 ` [Bug c++/102261] " rguenth at gcc dot gnu.org
2021-09-10  7:51 ` [Bug c++/102261] [12 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502 marxin at gcc dot gnu.org
2022-01-20 10:16 ` rguenth at gcc dot gnu.org
2022-05-06  8:30 ` [Bug c++/102261] [12/13 " jakub at gcc dot gnu.org
2023-05-08 12:22 ` [Bug c++/102261] [12/13/14 " rguenth 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).