Bug 635 – regression: looping "Error: outer class Outer 'this' needed to 'new' nested class Inner"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-12-03T03:53:00Z
Last change time
2014-02-15T13:22:05Z
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0 by thomas-dloop — 2006-12-03T03:53:59Z
http://dstress.kuehne.cn/nocompile/n/nested_class_01_C.d
causes an invinite loop of error messages:
nocompile/n/nested_class_01_C.d(15): Error: outer class Outer 'this' needed to 'new' nested class Inner
nocompile/n/nested_class_01_C.d(15): Error: 'this' is only allowed in non-static member functions, not main
nocompile/n/nested_class_01_C.d(15): Error: 'this' for nested class must be a class type, not int
nocompile/n/nested_class_01_C.d(15): Error: outer class Outer 'this' needed to 'new' nested class Inner
nocompile/n/nested_class_01_C.d(15): Error: 'this' is only allowed in non-static member functions, not main
nocompile/n/nested_class_01_C.d(15): Error: 'this' for nested class must be a class type, not int
nocompile/n/nested_class_01_C.d(15): Error: outer class Outer 'this' needed to 'new' nested class Inner
...
Comment #1 by thomas-dloop — 2006-12-10T14:35:50Z
*** Bug 672 has been marked as a duplicate of this bug. ***