digitalmars.D.bugs - [Issue 6882] New: Reference to rvalue segfaults
- d-bugmail puremagic.com (29/29) Nov 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6882
- d-bugmail puremagic.com (12/12) Dec 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6882
http://d.puremagic.com/issues/show_bug.cgi?id=6882
Summary: Reference to rvalue segfaults
Product: D
Version: unspecified
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: jens.k.mueller gmx.de
This code
unittest
{
void foo(ref string bar)
{
bar = bar[1 .. $];
}
foo("test");
}
segfaults with dmd v2.056 on Linux.
In my understanding the problem is that "test" is an rvalue and dmd should
report an compile error. I have no complete understanding regarding lvalues vs.
rvalues in D.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6882
yebblies <yebblies gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |yebblies gmail.com
Resolution| |DUPLICATE
*** This issue has been marked as a duplicate of issue 4539 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 12 2011








d-bugmail puremagic.com