public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95838] New: [10 Regression] ICE in (Segmentation Fault)
@ 2020-06-23 11:34 doko at debian dot org
  2020-06-23 11:58 ` [Bug c++/95838] " doko at debian dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: doko at debian dot org @ 2020-06-23 11:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95838
           Summary: [10 Regression] ICE in (Segmentation Fault)
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
  Target Milestone: ---

seen with the gcc-10 branch 20200616, not with 20200525:

$ cat watchdog.ii
namespace a {
class b {
public:
  virtual ~b();
  virtual void c();
};
} // namespace a
class d {
protected:
  virtual ~d();
};
class f : d, a::b {
public:
  using a::b::c;
};
class g final : f {
  void e();
};
void g::e() {
  c()
};

$ gcc-10 -std=c++17 -Wall -c watchdog.ii 
watchdog.ii: In member function ‘void g::e()’:
watchdog.ii:20:5: internal compiler error: Segmentation fault
   20 |   c()
      |     ^
0x7fce9f94b7ff ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7fce9f936e0a __libc_start_main
        ../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.


Program received signal SIGSEGV, Segmentation fault.
0x0000000000629006 in lookup_vfn_in_binfo(tree_node*, tree_node*) ()
(gdb) bt
#0  0x0000000000629006 in lookup_vfn_in_binfo(tree_node*, tree_node*) ()
#1  0x000000000061d559 in ?? ()
#2  0x000000000061eeaf in ?? ()
#3  0x000000000061f900 in build_new_method_call(tree_node*, tree_node*,
vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int) ()
#4  0x00000000006fc4fe in ?? ()
#5  0x00000000006e0e5b in ?? ()
#6  0x00000000006e250f in ?? ()
#7  0x00000000006e2823 in ?? ()
#8  0x00000000006e4da9 in ?? ()
#9  0x00000000006ef2a4 in ?? ()
#10 0x00000000006f09f9 in ?? ()
#11 0x00000000006f0ab1 in ?? ()
#12 0x00000000007065a1 in ?? ()
#13 0x0000000000709bae in ?? ()
#14 0x000000000070aa90 in ?? ()
#15 0x00000000006ed433 in ?? ()
#16 0x0000000000713183 in ?? ()
#17 0x00000000007138a5 in c_parse_file() ()
#18 0x00000000007dc2bc in c_common_parse_file() ()
#19 0x0000000000c30364 in ?? ()
#20 0x0000000000607c3d in toplev::main(int, char**) ()
#21 0x000000000060b73f in main ()

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

* [Bug c++/95838] [10 Regression] ICE in (Segmentation Fault)
  2020-06-23 11:34 [Bug c++/95838] New: [10 Regression] ICE in (Segmentation Fault) doko at debian dot org
@ 2020-06-23 11:58 ` doko at debian dot org
  2020-06-23 12:02 ` [Bug c++/95838] [10/11 " doko at debian dot org
  2020-06-23 12:23 ` [Bug c++/95838] [10/11 Regression] ICE in lookup_vfn_in_binfo " mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: doko at debian dot org @ 2020-06-23 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Matthias Klose <doko at debian dot org> ---
also seen with 20200623:

../watchdog.ii: In member function ‘void g::e()’:
../watchdog.ii:20:5: internal compiler error: Segmentation fault
   20 |   c()
      |     ^
0x12f56ac crash_signal
        ../../src/gcc/toplev.c:328
0x7f9e10e4f7ff ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x922806 lookup_vfn_in_binfo(tree_node*, tree_node*)
        ../../src/gcc/cp/class.c:2459
0x90f952 build_over_call
        ../../src/gcc/cp/call.c:8699
0x914077 build_new_method_call_1
        ../../src/gcc/cp/call.c:10357
0x914378 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../src/gcc/cp/call.c:10432
0xa4e03c cp_parser_postfix_expression
        ../../src/gcc/cp/parser.c:7439
0xa50911 cp_parser_unary_expression
        ../../src/gcc/cp/parser.c:8563
0xa51ca3 cp_parser_cast_expression
        ../../src/gcc/cp/parser.c:9459
0xa51d90 cp_parser_binary_expression
        ../../src/gcc/cp/parser.c:9562
0xa52ac9 cp_parser_assignment_expression
        ../../src/gcc/cp/parser.c:9867
0xa52e66 cp_parser_expression
        ../../src/gcc/cp/parser.c:10035
0xa56481 cp_parser_expression_statement
        ../../src/gcc/cp/parser.c:11696
0xa55e3b cp_parser_statement
        ../../src/gcc/cp/parser.c:11492
0xa568dc cp_parser_statement_seq_opt
        ../../src/gcc/cp/parser.c:11843
0xa567c0 cp_parser_compound_statement
        ../../src/gcc/cp/parser.c:11793
0xa69a63 cp_parser_function_body
        ../../src/gcc/cp/parser.c:23074
0xa69bfd cp_parser_ctor_initializer_opt_and_function_body
        ../../src/gcc/cp/parser.c:23125
0xa73b20 cp_parser_function_definition_after_declarator
        ../../src/gcc/cp/parser.c:29016
0xa73947 cp_parser_function_definition_from_specifiers_and_declarator
        ../../src/gcc/cp/parser.c:28932
Please submit a full bug report,
with preprocessed source if appropriate.

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

* [Bug c++/95838] [10/11 Regression] ICE in (Segmentation Fault)
  2020-06-23 11:34 [Bug c++/95838] New: [10 Regression] ICE in (Segmentation Fault) doko at debian dot org
  2020-06-23 11:58 ` [Bug c++/95838] " doko at debian dot org
@ 2020-06-23 12:02 ` doko at debian dot org
  2020-06-23 12:23 ` [Bug c++/95838] [10/11 Regression] ICE in lookup_vfn_in_binfo " mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: doko at debian dot org @ 2020-06-23 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

Matthias Klose <doko at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |11.0
            Summary|[10 Regression] ICE in      |[10/11 Regression] ICE in
                   |(Segmentation Fault)        |(Segmentation Fault)

--- Comment #2 from Matthias Klose <doko at debian dot org> ---
also seen with trunk 20200616

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

* [Bug c++/95838] [10/11 Regression] ICE in lookup_vfn_in_binfo (Segmentation Fault)
  2020-06-23 11:34 [Bug c++/95838] New: [10 Regression] ICE in (Segmentation Fault) doko at debian dot org
  2020-06-23 11:58 ` [Bug c++/95838] " doko at debian dot org
  2020-06-23 12:02 ` [Bug c++/95838] [10/11 " doko at debian dot org
@ 2020-06-23 12:23 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-06-23 12:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

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

*** This bug has been marked as a duplicate of bug 95719 ***

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

end of thread, other threads:[~2020-06-23 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23 11:34 [Bug c++/95838] New: [10 Regression] ICE in (Segmentation Fault) doko at debian dot org
2020-06-23 11:58 ` [Bug c++/95838] " doko at debian dot org
2020-06-23 12:02 ` [Bug c++/95838] [10/11 " doko at debian dot org
2020-06-23 12:23 ` [Bug c++/95838] [10/11 Regression] ICE in lookup_vfn_in_binfo " 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).