------- Comment #6 from pinskia at gcc dot gnu dot org  2008-01-27 18:05 -------
First file:
extern struct globals *const ptr_to_globals;
struct globals { };
int syslogd_main(int argc, char **argv)
{
 (*(struct globals**)&ptr_to_globals) = 0;
}
----- CUT -----

Second file:
extern struct globals *const ptr_to_globals;


---- CUT -----
-O2 is enough to reproduce this.


-- 

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         |2008-01-27 18:05:06
               date|                            |


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

Reply via email to