Bug 16621 – [REG2.060] DMD hang in semantic3 on alias this

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-10-18T11:54:23Z
Last change time
2018-01-04T23:43:41Z
Assigned to
No Owner
Creator
Daniel Kozak
See also
https://issues.dlang.org/show_bug.cgi?id=18162

Comments

Comment #0 by kozzi11 — 2016-10-18T11:54:23Z
some other info in forum http://forum.dlang.org/post/[email protected] hang code example: auto xxx(T)() if (is(T == struct)) { return this; } struct Vector2f { mixin xxx!(typeof(this)); alias xxx this; } void foo(ref const Vector2f pos) {} void main() { Vector2f v; foo(v); } segfault example: import std.stdio; auto xxx(T)() { return this; } struct S { mixin xxx!(typeof(this)); alias xxx this; } void foo(S pos) { writeln(pos); } void main(){}
Comment #1 by dlang-bugzilla — 2017-07-02T13:57:45Z
(In reply to Daniel Kozak from comment #0) > hang code example: This one seems to be a regression. Introduced in https://github.com/dlang/dmd/pull/890 > segfault example: This one was always there.
Comment #2 by bugzilla — 2018-01-03T02:25:02Z
Comment #3 by bugzilla — 2018-01-03T02:28:19Z
The seg fault was split off into https://issues.dlang.org/show_bug.cgi?id=18162
Comment #4 by bugzilla — 2018-01-03T02:34:14Z
*** Issue 18162 has been marked as a duplicate of this issue. ***
Comment #5 by github-bugzilla — 2018-01-04T14:51:09Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d2e267008f47c7bafe7c66dbb316e6b9568c70ab fix Issue 16621 - [REG2.060] DMD hang in semantic3 on alias this https://github.com/dlang/dmd/commit/72f76d042a3b8cb858f1f1a679f9d2e01b4919a9 Merge pull request #7588 from WalterBright/fix16621 fix Issue 16621 - [REG2.060] DMD hang in semantic3 on alias this merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
Comment #6 by github-bugzilla — 2018-01-04T23:43:41Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d2e267008f47c7bafe7c66dbb316e6b9568c70ab fix Issue 16621 - [REG2.060] DMD hang in semantic3 on alias this https://github.com/dlang/dmd/commit/72f76d042a3b8cb858f1f1a679f9d2e01b4919a9 Merge pull request #7588 from WalterBright/fix16621