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 middle-end/32856] Invalid optimization in the face of aliasing



------- Comment #4 from felix-gcc at fefe dot de  2007-07-22 23:08 -------
Falk:

  union {
    struct {
      void* unused;
      struct node n;
    } a;
    struct node b;
  } u;

Then &u.a.n.next == &u.b.n.prev;

Artificial?  Sure.  But legal.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32856


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