Bug 156 – Inheriting nested classes and "-inline" throws access violation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-05-24T12:19:00Z
Last change time
2014-02-15T13:22:19Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
sky

Comments

Comment #0 by sky — 2006-05-24T12:19:24Z
The following code throws an access violation when compiled with "-inline". It works fine with other compiler flags. ------------------------------------------ module nestedclass2; private import std.stdio; class Foo { class Bar { void doSayHello() { sayHello(); } } Bar bar; void sayHello() { writefln("Hello"); } this() { bar = new Bar(); } } class Foo2 : Foo { } int main(char[][] argv) { Foo2 foo = new Foo2(); writefln("This should print Hello:"); foo.bar.doSayHello(); return 0; }
Comment #1 by bugzilla — 2006-06-04T22:16:16Z
Fixed in DMD 0.160
Comment #2 by thomas-dloop — 2007-01-01T04:25:33Z