-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
fix Issue 20461 - [dip1000] Passing stack allocated string to assert … #10947
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla references
|
|
Why would be |
|
Because it does (unfortunately). See explanation here: Blocked by dlang/druntime#2999 Frankly what happens when assert() gets called is a ridiculous sequence of Rube Goldberg trampolines, but fixing that is beyond the scope of this patch. |
|
Blocked by dlang/phobos#7426 |
|
Fair enough. Personally not too thrilled about it (especially in the |
The problem is (as pointed out in bugzilla) these are unnoticed critical errors - the message will be garbage. That code does not work, and in good conscience we should not issue deprecations for it, only errors. |
|
Right, I thought it might work with |
|
Can you rebase ? |
|
rebased |
|
@thewilsonator this needs manually merge it seems |
|
In this case the CI just needed to be retriggered, the upstream bug has been fixed. |
…compiles
Added an extra parameter to checkParamArgumentEscape() to make it work.