This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/83471] New: [7 regression] internal compiler error: in mark_reachable_handlers, at tree-eh.c:3854


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

            Bug ID: 83471
           Summary: [7 regression] internal compiler error: in
                    mark_reachable_handlers, at tree-eh.c:3854
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: skpgkp1 at gmail dot com
                CC: hjl.tools at gmail dot com, rguenth at gcc dot gnu.org
  Target Milestone: ---

This issue appear in GCC 7 mariadb build. GCC 7 revision 255682 regressed with
internal error. Following are steps to reproduce.

$ cat array.cpp.i.cpp
class a {
public:
  void *operator new(unsigned long, int);
};
class b : public a {
public:
  b();
  virtual int c() {}
  void m_fn2();
};
int d;
void e() {
  long f;
  b *g;
  (f);
  g = new (d) b;
  g->c();
  g->m_fn2();
}

$ g++ --version
g++ (GCC) 7.2.1 20171215
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ g++ -O2  -o array.cpp.i.cpp.o -c array.cpp.i.cpp
array.cpp.i.cpp: In function ‘void e()’:
array.cpp.i.cpp:19:1: internal compiler error: in mark_reachable_handlers, at
tree-eh.c:3854
 }
 ^
0xb2962d mark_reachable_handlers
        ../../gcc-7.3O40/gcc/tree-eh.c:3854
0xb29662 remove_unreachable_handlers
        ../../gcc-7.3O40/gcc/tree-eh.c:3901
0xb2b19a execute_cleanup_eh_1
        ../../gcc-7.3O40/gcc/tree-eh.c:4574
0xb2b19a execute
        ../../gcc-7.3O40/gcc/tree-eh.c:4641
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

GCC 7 revision 255681 is good.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]