Thread overview | ||||||
---|---|---|---|---|---|---|
|
October 25, 2013 [Issue 11358] New: debug import and getUnittests do not mix | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11358 Summary: debug import and getUnittests do not mix Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: dbdavidson@yahoo.com --- Comment #0 from Daniel Davidson <dbdavidson@yahoo.com> 2013-10-25 15:58:41 PDT --- The following code will segfault when run with: dmd -main -unittest c.d However it runs fine with dmd -main -unittest -debug c.d import std.typetuple; import std.stdio; debug import std.datetime; unittest { writeln("In Test!!"); } mixin("alias mod = " ~ __MODULE__ ~ ";"); alias tests = TypeTuple!(__traits(getUnitTests, mod)); static this() { writeln("Done"); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 26, 2013 [Issue 11358] debug import and getUnittests do not mix | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Davidson | http://d.puremagic.com/issues/show_bug.cgi?id=11358 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice, pull Version|unspecified |D2 --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-10-26 06:36:48 PDT --- Reduced test case: debug { } enum len = __traits(getUnitTests, mixin(__MODULE__)).length; Compiler fix: https://github.com/D-Programming-Language/dmd/pull/2695 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 26, 2013 [Issue 11358] debug import and getUnittests do not mix | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Davidson | http://d.puremagic.com/issues/show_bug.cgi?id=11358 --- Comment #2 from github-bugzilla@puremagic.com 2013-10-26 11:09:31 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3bee007ab0a68fd36d397a004a1a43af9d0b550c fix Issue 11358 - debug import and getUnittests do not mix https://github.com/D-Programming-Language/dmd/commit/ece5793e34711f217cac02b19b5f5479a1320c9f Merge pull request #2695 from 9rnsr/fix11358 Issue 11358 - debug import and getUnittests do not mix -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 26, 2013 [Issue 11358] debug import and getUnittests do not mix | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Davidson | http://d.puremagic.com/issues/show_bug.cgi?id=11358 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.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