digitalmars.D.bugs - [Issue 6071] New: BigInt initialization causes compiler to hang
- d-bugmail puremagic.com (33/33) May 28 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6071
- d-bugmail puremagic.com (11/11) Aug 30 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6071
http://d.puremagic.com/issues/show_bug.cgi?id=6071 Summary: BigInt initialization causes compiler to hang Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: paul.d.anderson comcast.net --- Comment #0 from Paul D. Anderson <paul.d.anderson comcast.net> 2011-05-28 19:42:52 PDT --- The following code compiles: import std.bigint; import std.stdio; public static void main() { writeln("Hello, world!"); BigInt big = BigInt(0); } But this code causes the compiler to enter an endless loop: import std.bigint; import std.stdio; public BigInt big = BigInt(0); public static void main() { writeln("Hello, world!"); } This seems to be generally true for any initialization of a BigInt variable outside a function. Using dmd -v, with source code in bigtest.d, it hangs at "semantic2 bigtest". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 28 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6071 Paul D. Anderson <paul.d.anderson comcast.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Paul D. Anderson <paul.d.anderson comcast.net> 2011-08-30 21:12:48 PDT --- The subject code works correctly in DMD 2.054. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 30 2011