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

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4835 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

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

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4835 Andrei Alexandrescu changed: What|Removed |Added Version|D1 & D2 |D2 --

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

2014-11-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4835 Leandro Lucarella changed: What|Removed |Added Keywords||industry CC|

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

2014-11-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4835 bearophile_h...@eml.cc changed: What|Removed |Added CC||pub...@dicebot.lv --- Comment #17 fro

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

2014-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4835 hst...@quickfur.ath.cx changed: What|Removed |Added Keywords||pull --

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

2013-03-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #16 from Walter Bright 2013-03-28 00:39:03 PDT --- (In reply to comment #15) > Walter, what do you mean, screw? Is that a limitation of the dmd backend, or > are you arguing that it is problematic in general? LLVM implements it, as

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

2013-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #15 from Lu�s Marques 2013-03-27 09:00:14 PDT --- (In reply to comment #13) > Because it'll screw things up right and left, for example, address > calculations. Walter, what do you mean, screw? Is that a limitation of the dmd back

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

2013-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #14 from bearophile_h...@eml.cc 2013-03-27 04:00:40 PDT --- (In reply to comment #11) > While I disagree with bearophile about doing such checks at runtime, due to > the > performance cost, A feature of LLVM 3.3, it seems those cos

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

2013-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #13 from Walter Bright 2013-03-27 02:38:18 PDT --- Because it'll screw things up right and left, for example, address calculations. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are rec

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #12 from Lu�s Marques 2013-03-26 22:46:13 PDT --- (In reply to comment #11) > While I disagree with bearophile about doing such checks at runtime, due to > the > performance cost, doing them at compile time is a whole 'nother stor

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #11 from Walter Bright 2013-03-26 22:36:40 PDT --- While I disagree with bearophile about doing such checks at runtime, due to the performance cost, doing them at compile time is a whole 'nother story. -- Configure issuemail: htt

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #10 from Lu�s Marques 2013-03-26 20:04:13 PDT --- (In reply to comment #9) > (In reply to comment #8) > > https://github.com/D-Programming-Language/dmd/pull/1803 > > An error, even :-) So the issue name should be updated. > > Tha

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #9 from bearophile_h...@eml.cc 2013-03-26 19:45:01 PDT --- (In reply to comment #8) > https://github.com/D-Programming-Language/dmd/pull/1803 An error, even :-) So the issue name should be updated. Thank you Walter. Let's see how t

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #8 from Walter Bright 2013-03-26 19:06:55 PDT --- https://github.com/D-Programming-Language/dmd/pull/1803 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because:

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #7 from bearophile_h...@eml.cc 2013-03-26 15:13:56 PDT --- (In reply to comment #6) > uint foo() { > uint x = 1 << 40; > return 1 << 90; > } > > gives: > > foo2.d(3): Error: shift by 40 is outside the range 0..31 > foo2.d(4

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 Lu�s Marques changed: What|Removed |Added CC||luismarq...@gmail.com --- Comment #5 fr

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #3 from bearophile_h...@eml.cc 2013-03-26 11:27:23 PDT --- An example in Go language: package main func main() { var x uint32 = 1 << 40 var y = 1024 * 1024 * 1024 * 6 } The Go compiler gives the errors: test.go:3: consta

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

2013-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 --- Comment #4 from bearophile_h...@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 over

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

2011-02-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 Brad Roberts changed: What|Removed |Added Platform|x86_64 |x86 --- Comment #2 from Brad Roberts 2

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

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com