[Issue 7161] Passing string literal by ref changes its bounds forever

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 24 13:11:04 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7161


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #5 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-12-24 13:11:00 PST ---
This code shouldn't even be legal. A string literal isn't an lvalue and can't
be passed by reference. It's bug that that compiles at all. This looks like a
duplicate of bug# 4539.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list