[Issue 4397] const/CTFE does not work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 2 06:16:24 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=4397


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |


--- Comment #14 from Don <clugdbug at yahoo.com.au> 2012-02-02 06:16:18 PST ---
This isn't the same as bug 2526, which is an accepts-invalid bug. This has
nothing to do with templates.

The glue layer needs to detect when a constant is being initialized with an
array literal, and when that happens, change it into a value on the static data
segment (ie, it needs to create an XXXinit initializer). Doing this would also
help with bug 2356, but it isn't the same. (Bug 2356 will often need to create
values at runtime, so it will need to copy data from the initializer).

-- 
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