This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/80659] [7/8 Regression] -fsanitize=address evokes ICE in in gimplify_switch_expr
- From: "eggert at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 May 2017 20:38:40 +0000
- Subject: [Bug sanitizer/80659] [7/8 Regression] -fsanitize=address evokes ICE in in gimplify_switch_expr
- Auto-submitted: auto-generated
- References: <bug-80659-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80659
Paul Eggert <eggert at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eggert at gnu dot org
--- Comment #8 from Paul Eggert <eggert at gnu dot org> ---
(In reply to jim from comment #5)
Here's a simpler test case that illustrates the same bug (GCC 7.1.0, x86-64,
compiled via "gcc -O2 -S -fsanitize=address v2.i"):
typedef struct Lisp_Object { long i; } Lisp_Object;
struct Lisp_String { char *data; };
Lisp_Object
server_accept_connection (int sa_family)
{
switch (sa_family)
{
default:;
Lisp_Object x = (Lisp_Object) { (long) &(struct Lisp_String) {">"} + 4
};
return x;
}
}