[Bug c/15048] Dereferincing char pointer to char array yields segfault.

rearnsha at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 21 17:18:00 GMT 2004


------- Additional Comments From rearnsha at gcc dot gnu dot org  2004-04-21 16:48 -------
Not a bug.  Your comment shows the problem.  extern char* is not the same as
extern char[].  One is a reference to a char array, the other a pointer to char.

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


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



More information about the Gcc-bugs mailing list