[Issue 4835] DMD should warn about integer overflow in computed constant

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 26 11:29:47 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=4835



--- Comment #4 from bearophile_hugs at eml.cc 2013-03-26 11:29:45 PDT ---
Another example in Go:    


package main
func main() {
    var x uint64 = 1 << 90
}


The Go compiler gives the error:

test.go:3: constant 1237940039285380274899124224 overflows uint64

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list