[Bug 68] New: BigInt declaration is not recognized

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Wed Jul 3 05:37:26 PDT 2013


http://bugzilla.gdcproject.org/show_bug.cgi?id=68

             Bug #: 68
           Summary: BigInt declaration is not recognized
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw at gdcproject.org
        ReportedBy: axeoth at yahoo.fr


The following compiles fine under (Linux 64) dmd 2.063.2:

import std.bigint;

BigInt a = "9588669891916142";

int main(string[] args) {

    return 0;
}

but it fails under (Linux 64) gdc (Ubuntu 4.8.1-5ubuntu1) 4.8.1:

/usr/include/d/4.8/std/internal/math/biguintcore.d:1511: Error: reinterpreting
cast from uint* to ulong* is not supported in CTFE
/usr/include/d/4.8/std/internal/math/biguintcore.d:388:        called from
here: biguintFromDecimal(this.data, s[cast(ulong)firstNonZero..__dollar])
/usr/include/d/4.8/std/bigint.d:100:        called from here:
this.data.fromDecimalString(cast(const(char)[])s)
main.d:3:        called from here: BigInt(BigUint([0u]),
false).this("9588669891916142")
/usr/include/d/4.8/std/internal/math/biguintcore.d:1511: Error: reinterpreting
cast from uint* to ulong* is not supported in CTFE
/usr/include/d/4.8/std/internal/math/biguintcore.d:388:        called from
here: biguintFromDecimal(this.data, s[cast(ulong)firstNonZero..__dollar])
/usr/include/d/4.8/std/bigint.d:100:        called from here:
this.data.fromDecimalString(cast(const(char)[])s)
main.d:3:        called from here: BigInt(BigUint([0u]),
false).this("9588669891916142")

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the D.gnu mailing list