D.gnu - [Bug 165] New: gdc segfault on scope(failure)
- via D.gnu (35/35) Nov 07 2014 Date: Fri, 7 Nov 2014 09:07:28 +0000
Date: Fri, 7 Nov 2014 09:07:28 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
http://bugzilla.gdcproject.org/show_bug.cgi?id=3D165
Bug ID: 165
Summary: gdc segfault on scope(failure)
Product: GDC
Version: 4.9.x
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Normal
Component: gdc
Assignee: ibuclaw gdcproject.org
Reporter: ketmar ketmar.no-ip.org
the following code causes gdc to segfault:
void a () {
scope(failure) import std.file : remove;
;
}
observations:
only 'failure' faults; 'success' or 'exit' does not.
any ':'-import will do. create module 'b' with function 'f', and 'import b :
f;' will segfault.
that lone semicolon matters. remove it and segfault will disappear.
'scope(failure) { import =E2=80=A6 }' segfaults too.
simple 'import std.file;' does not segfault.
actually, lone semicolon can be anything: variable declaration, function ca=
ll,
operator, etc.
--=20
You are receiving this mail because:
You are watching all bug changes.
Nov 07 2014








" via D.gnu" <d.gnu puremagic.com>