public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13049] New: Does not warn on obious aliasing problem
@ 2003-11-14 10:00 pinskia at gcc dot gnu dot org
  2003-11-15  2:50 ` [Bug optimization/13049] Does not warn on obvious " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-14 10:00 UTC (permalink / raw)
  To: gcc-bugs

The following code should warn as there is an aliasing problem in the code (derived from gcc in 
SPEC, yes that old code):
struct tt
{
        struct
        {
          short i;
          short j;
        }t;
};
void t(struct tt *i)
{
  ((int*)i)[0] = 0;
  i->t.j = 2;
}

-- 
           Summary: Does not warn on obious aliasing problem
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-09-26 15:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
2003-11-15  2:50 ` [Bug optimization/13049] Does not warn on obvious " pinskia at gcc dot gnu dot org
2003-11-21 23:30 ` pinskia at gcc dot gnu dot org
2003-11-23 23:24 ` pinskia at gcc dot gnu dot org
2003-11-28 20:34 ` pinskia at gcc dot gnu dot org
2004-02-27  5:58 ` pinskia at gcc dot gnu dot org
2004-04-05  0:53 ` pinskia at gcc dot gnu dot org
2004-06-20 20:47 ` [Bug rtl-optimization/13049] " pinskia at gcc dot gnu dot org
2005-02-27  5:22 ` pinskia at gcc dot gnu dot org
2005-09-26 15:39 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).