Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed attributes should be required at compile-time #101

Open
wilzbach opened this issue May 24, 2016 · 0 comments
Open

Needed attributes should be required at compile-time #101

wilzbach opened this issue May 24, 2016 · 0 comments
Milestone

Comments

@wilzbach
Copy link
Member

... by using an appropriate constructor ;-)

I just had the unpleasant experience of debugging this segfault:

Program received signal SIGSEGV, Segmentation fault.
0x00000000005b118c in dparse.rollback_allocator.RollbackAllocator.allocate(const(ulong)) (this=..., size=72)
    at ../../../.dub/packages/libdparse-master/libdparse/src/dparse/rollback_allocator.d:30
30          if (first is null)

The reason is that the allocator variable in Parser is not set, an error which could be checked easily with a constructor ;-)

@ghost ghost added the enhancement label Jan 16, 2019
@WebFreak001 WebFreak001 added this to the v1.0.0 milestone May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants