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 sanitizer/80659] [7/8 Regression] -fsanitize=address evokes ICE in in gimplify_switch_expr


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;
      }
  }

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