[Issue 6276] New: [CTFE] Strange behavior of using ~= operator twice
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 9 01:22:07 PDT 2011
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 at puremagic.com
ReportedBy: youxkei at gmail.com
--- Comment #0 from Hisayuki Mima <youxkei at 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: -------
More information about the Digitalmars-d-bugs
mailing list