This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84733] [8 Regression] internal compiler error: Segmentation fault (check_local_shadow())
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Apr 2018 10:08:01 +0000
- Subject: [Bug c++/84733] [8 Regression] internal compiler error: Segmentation fault (check_local_shadow())
- Auto-submitted: auto-generated
- References: <bug-84733-4@http.gcc.gnu.org/bugzilla/>
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;
}