[Issue 4315] New: Invalid object file created when appending const char[0] to char[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 14 16:17:38 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4315
Summary: Invalid object file created when appending const
char[0] to char[]
Product: D
Version: D1
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: torhu at yahoo.com
--- Comment #0 from torhu at yahoo.com 2010-06-14 16:17:35 PDT ---
DMD 1.061.
---
void main()
{
char[] a;
const b = "";
//const char[0] b; // fails
//char[0] b; // ok
//const b = "x"; // ok
//const char[] b = ""; // ok
//auto b = ""; // ok
a ~= b;
}
---
Output:
d:\prog\test\D\matheval>dmd -run test
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
test.obj(test) Offset 0018FH Record Type 009D
Error 16: Index Range
--- errorlevel 1
optlink 8.00.2 silently ignores this error, I'll create another bug report for
that.
--
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