[Issue 1766] segfault writing to a string variable...

Kenny B funisher at gmail.com
Thu Jan 3 15:03:13 PST 2008


d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=1766
> 
> 
> bugzilla at digitalmars.com changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |INVALID
> 
> 
> 
> 
> ------- Comment #2 from bugzilla at digitalmars.com  2008-01-02 20:57 -------
> This is not a bug, string literals are read-only.
> 
> 

Ok, I understand it's not a bug and it makes perfect sense, but why did
the same exact code work as I originally expected with dmd-2.003?
shouldn't that also be read-only?

Is it a bug that dmd works?


More information about the D.gnu mailing list