[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-07-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 yebblies changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-07-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 --- Comment #16 from github-bugzi...@puremagic.com 2013-07-07 21:09:32 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c2647ba31e7a60ccc354e67aad3a05ceaf7b75

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-07-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 --- Comment #15 from Kenji Hara 2013-07-01 08:01:17 PDT --- (In reply to comment #14) > Not fully fixed for @safe. The conditions to reproduce are a bit complicated > actually. It requires attribute inference, mixin and default args (!) I'm no

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-07-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 monarchdo...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIX

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 yebblies changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comment #13

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 yebblies changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-05-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 --- Comment #11 from yebblies 2013-05-11 20:51:44 EST --- (In reply to comment #10) > > A reduction of that code: > > > int foo() { > int x = 0; > int bar() { > return x; > } > enum y = bar(); > return 0; > } > en

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-05-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 --- Comment #10 from bearophile_h...@eml.cc 2013-05-04 11:11:40 PDT --- (In reply to comment #1) > pure nothrow int foo() { > int x = 1; > nothrow int bar(int y) { // nonpure > x++; > return x + y; > } > > pure n

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-05-04 Thread d-bugmail
/42d1af1635fec1c43bbda6c4a3894e148ca6fc22 Fix Issue 6169 - [CTFE] pure functions cannot compute constants using functions not marked as pure When running semantic on an expression used anywhere that forces compile time evaluation, use a scope flag to prevent purity and safety checks on function calls. This allows better purity/safety

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-02-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 yebblies changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #8 from

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-01-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 --- Comment #7 from yebblies 2013-01-31 23:03:40 EST --- This bug is exactly where it has been for the last year - awaiting approval from Walter. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are re

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2013-01-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com --- Com

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2012-04-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 --- Comment #5 from yebblies 2012-04-28 15:02:07 EST --- *** Issue 7994 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail becaus

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2012-01-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 yebblies changed: What|Removed |Added Keywords||patch CC|

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2011-06-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 --- Comment #3 from timon.g...@gmx.ch 2011-06-17 06:57:25 PDT --- Interestingly, it does not apply to nothrow unless interpreting the function fails :). I think this is a diagnostics bug: int foo(){return 0;} int bar(){assert(0);} void main() n

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2011-06-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #2 from Don 2

[Issue 6169] [CTFE] pure functions cannot compute constants using functions not marked as pure

2011-06-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6169 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com