------- Comment #1 from pinskia at gcc dot gnu dot org  2007-10-25 20:40 -------
No const here applies to the char and not to the pointer type, if you want it
to apply to the pointer type then write it as:
  char * const foo = 0;

The mainline shows:
t122.c: In function 'main':
t122.c:6: error: assignment of read-only location '*foo'


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

Reply via email to