[Issue 3033] CTFE call of non-static member function allowed inside template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 17 02:24:22 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3033
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |clugdbug at yahoo.com.au
Resolution| |INVALID
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-08-17 02:24:21 PDT ---
This is invalid. The template never gets instantiated (certainly its value is
never requested), so CTFE isn't involved. The alias is still OK, since it might
be used at runtime.
Try adding this line at the end:
const CONST_STRUCT3 = foo.CONST_STRUCT;
and then you'll correctly get an error.
--
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