public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27184]  New: [4.0/4.1/4.2 Regression] Wrong code with pointers to arrays and types and strict aliasing
@ 2006-04-17 18:46 pinskia at gcc dot gnu dot org
  2006-04-17 18:46 ` [Bug c/27184] " pinskia at gcc dot gnu dot org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-17 18:46 UTC (permalink / raw)
  To: gcc-bugs

Testcase (at -O2 and above):
typedef long atype[];
typedef long atype1[];
int NumSift (atype *a, atype1 *a1)
{
  (*a)[0] = 0;
  (*a1)[0] = 1;
  return (*a)[0];
}
int main(void)
{
  long a[2];
  if (!NumSift(&a, &a))
    __builtin_abort ();
  return 0;
}
------
Orginally reported here:
http://gcc.gnu.org/ml/gcc/2006-03/msg00638.html


-- 
           Summary: [4.0/4.1/4.2 Regression] Wrong code with pointers to
                    arrays and types and strict aliasing
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-01-25 15:55 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-17 18:46 [Bug c/27184] New: [4.0/4.1/4.2 Regression] Wrong code with pointers to arrays and types and strict aliasing pinskia at gcc dot gnu dot org
2006-04-17 18:46 ` [Bug c/27184] " pinskia at gcc dot gnu dot org
2006-04-17 19:55 ` rguenth at gcc dot gnu dot org
2006-04-17 20:07 ` rguenth at gcc dot gnu dot org
2006-05-29  8:10 ` aoliva at gcc dot gnu dot org
2006-05-29  9:18 ` aoliva at gcc dot gnu dot org
2006-05-30  6:33 ` aoliva at gcc dot gnu dot org
2006-06-04 18:27 ` mmitchel at gcc dot gnu dot org
2006-06-20  2:06 ` patchapp at dberlin dot org
2006-06-30  3:10 ` pinskia at gcc dot gnu dot org
2006-07-20 21:34 ` steven at gcc dot gnu dot org
2006-08-08  0:56 ` pinskia at gcc dot gnu dot org
2006-08-13 20:17 ` [Bug c/27184] [4.0/4.1 " pinskia at gcc dot gnu dot org
2006-08-13 20:17 ` [Bug c/27184] [4.0/4.1/4.2 " pinskia at gcc dot gnu dot org
2006-08-28  8:12 ` [Bug c/27184] [4.0/4.1 " christian dot joensson at gmail dot com
2006-08-31 11:00 ` pinskia at gcc dot gnu dot org
2006-10-04 17:18 ` pinskia at gcc dot gnu dot org
2006-10-16  9:36 ` rguenth at gcc dot gnu dot org
2006-10-16 11:18 ` rguenth at gcc dot gnu dot org
2006-10-16 11:19 ` [Bug c/27184] [4.0 " rguenth at gcc dot gnu dot org
2007-01-25 15:55 ` gdr 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).