Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 14, 2011 [Issue 5733] New: Calling opDispatch As Template Results in Compiler Infinite Loop | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5733 Summary: Calling opDispatch As Template Results in Compiler Infinite Loop Product: D Version: D2 Platform: All OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: wfunction@hotmail.com --- Comment #0 from wfunction@hotmail.com 2011-03-13 21:51:57 PDT --- The code below causes the compiler to go into an infinite loop, continuously allocating memory until it crashes: struct Test { struct opDispatch(string dummy) { enum opDispatch = 1; } } auto temp = Test().foo!(int)(); Please *do* allow generics to work inside opDispatch (do not just remove the feature), as it allows for some very neat tricks (like static "late" binding) to be done. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 14, 2012 [Issue 5733] Calling opDispatch As Template Results in Compiler Infinite Loop | ||||
---|---|---|---|---|
| ||||
Posted in reply to wfunction@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5733 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice, pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-03-13 18:35:50 PDT --- https://github.com/D-Programming-Language/dmd/pull/808 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 15, 2012 [Issue 5733] Calling opDispatch As Template Results in Compiler Infinite Loop | ||||
---|---|---|---|---|
| ||||
Posted in reply to wfunction@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5733 --- Comment #2 from github-bugzilla@puremagic.com 2012-03-15 15:05:20 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/380b2f8a26da0cb5c6a263608efb2c7020f25c7e Merge pull request #808 from 9rnsr/fix7702 Issue 7702 & 5733 - opDispatch goes into infinite loop -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 15, 2012 [Issue 5733] Calling opDispatch As Template Results in Compiler Infinite Loop | ||||
---|---|---|---|---|
| ||||
Posted in reply to wfunction@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5733 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation