[Issue 6749] New: [CTFE] problem with array of structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 30 13:00:47 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6749
Summary: [CTFE] problem with array of structs
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2011-09-30 13:00:03 PDT ---
Actually I'm not sure what's at fault here but at least I have a test case on
R-T vs C-T behavior. Reduced from FReD static regex codegen, so the test case
is rather convulted.
Summarizing it: during CTFE I built an array of structs containing string.
Somehow at CTFE I manage to get string at index 0 with same content as at index
1. At run-time they are of course different. Maybe it has something to do with
to!string.
Tested on 2.055 and 2.056head running on linux 64, results are the same.
--
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