[Issue 15922] DMD segfault in functionParameters()

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Apr 14 10:45:14 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15922

--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/aa0df5c0e9795dd2531de5083b764171356e59ad
Fix issue 15922: DMD segfault in functionParameters on invalid code

`Dsymbol.errors` is used to indicate a symbol failed semantic analysis.
Currently, `FuncDeclaration.semantic3` fails if the parent has error,
so the body of aggregates that already have errors is not processed.
However, the code was only `return`ing and not setting `Dsymbol.errors`
to `true`, resulting in this error being unnoticed by `functionSemantic`.

https://github.com/D-Programming-Language/dmd/commit/bd46f551bb30999c68d3c79c284d6ac2af123d9b
Merge pull request #5659 from mathias-lang-sociomantic/fix15922

Fix issue 15922: DMD segfault in functionParameters on invalid code

--


More information about the Digitalmars-d-bugs mailing list