Thread overview | |||||
---|---|---|---|---|---|
|
July 09, 2011 [Issue 6276] New: [CTFE] Strange behavior of using ~= operator twice | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6276 Summary: [CTFE] Strange behavior of using ~= operator twice Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: youxkei@gmail.com --- Comment #0 from Hisayuki Mima <youxkei@gmail.com> 2011-07-09 01:17:00 PDT --- struct Foo{ int[] i; } bool func(){ Foo foo; foo.i ~= 1; foo.i ~= 2;//Compile fails on this line. return true; } When I compiled this source code, compile of dmd v2.054 built from trunk failed. Error: foo.i ~= 2 cannot be evaluated at compile time This may shows that operator ~= or array in CTFE has wrong behavior. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 26, 2011 [Issue 6276] [CTFE] Strange behavior of using ~= operator twice | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hisayuki Mima | http://d.puremagic.com/issues/show_bug.cgi?id=6276 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-07-26 15:17:54 PDT --- https://github.com/D-Programming-Language/dmd/commit/0904c8aa200e4d080d500d96d5904c33ba17cc86 https://github.com/D-Programming-Language/dmd/commit/e48a8c67f02172c72e04f36759d2d6868d716368 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 04, 2011 [Issue 6276] [CTFE] Strange behavior of using ~= operator twice | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hisayuki Mima | http://d.puremagic.com/issues/show_bug.cgi?id=6276 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samukha@voliacable.com --- Comment #2 from Don <clugdbug@yahoo.com.au> 2011-08-04 05:26:53 PDT --- *** Issue 6435 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 because: ------- |
Copyright © 1999-2021 by the D Language Foundation