[Issue 21607] dmd segfaults for forward reference in base class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 14 12:19:28 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=21607
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
Compiling this code with the latest version of master yields:
test.d(3): Error: function `test.CharSequence.toString` circular reference to
class `CharSequence`
test.d(1): Error: template instance `test.JavaClass!(CharSequence)` error
instantiating
test.d(1): Error: class `test.CharSequence` no size because of forward
reference
The first error message is confusing, but the rest are correct.
--
More information about the Digitalmars-d-bugs
mailing list