[Issue 10586] DMD unable to interpret cascaded template calls at compile time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 10 01:40:52 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10586
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2013-07-10 01:40:50 PDT ---
(In reply to comment #0)
> I think the regression got introduced while fixing 10579.
No, that's unrelated. This isn't a CTFE bug, it's a bug in enums. Semantic has
not yet been run on the enum initializer. My guess is that this is a forward
reference issue.
If you change it:
struct foo(size_t N) {
- enum size_t SIZE = FooSize!N;
+ enum size_t SIZE = 0 + FooSize!N;
then you get a segfault, because the type is still NULL.
My guess is that this was exposed by my "do const-folding in CTFE" patch.
Previously these kinds of errors went undetected.
--
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