D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6397 - D1: Empty const string causes bad obj
Summary: D1: Empty const string causes bad obj
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-28 14:05 UTC by Nick Sabalausky
Modified: 2017-10-25 03:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Sabalausky 2011-07-28 14:05:10 UTC
const a = "";

void main()
{
	auto x = a;
}

> dmd testEmptyStringLink.d
OPTLINK (R) for Win32  Release 8.00.12
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
testEmptyStringLink.obj(testEmptyStringLink)  Offset 00180H Record Type 009D
 Error 16: Index Range
--- errorlevel 1
Comment 1 Walter Bright 2017-10-25 03:15:50 UTC
Works with HEAD.