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++/84733] [8 Regression] internal compiler error: Segmentation fault (check_local_shadow())


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

--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In fact, if I slightly tweak the testcase to avoid the error by defining 'e' we
would ICE again, because binding->type is found null without a preceding
diagnostic. Thus I wonder if my patchlet in Comment 7 is actually correct or is
papering over a deeper issue?!?

struct c {
  ~c();
} b;

void f() {
  try {
d:
    ;
  } catch (int) {
  }

  decltype(b) a;
  int e;
  struct e { } f;
}

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