------- Comment #4 from pinskia at gcc dot gnu dot org  2006-02-13 15:37 -------
Testcase for the mainline:
typedef struct Foo { int a; int b; }Foo;

Foo foo(Foo first, Foo last, bool ret_first)
{
  Foo t;
  Foo *t1 = (ret_first ? &first : &last);
  first.a = 2;
  last.b = 3;
  t.a = t1->a;
  t.b = t1->b;
  t.a += first.a;
  t.b += last.b;
  return t;
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-13 15:37:29
               date|                            |
            Summary|[4.1 Regression] Wrong alias|[4.1/4.2 Regression] Wrong
                   |information for struct      |alias information for struct


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

Reply via email to