Skip to content

Fix CTFE AA bug 6769, which is breaking the autotester.#432

Merged
WalterBright merged 3 commits intodlang:masterfrom
don-clugston-sociomantic:ctfebreak
Oct 6, 2011
Merged

Fix CTFE AA bug 6769, which is breaking the autotester.#432
WalterBright merged 3 commits intodlang:masterfrom
don-clugston-sociomantic:ctfebreak

Conversation

@donc
Copy link
Collaborator

@donc donc commented Oct 5, 2011

This whole thing is pretty much a workaround for the hacks used in the druntime implementation of template AAs. The hacks get exposed when you compile with -inline.

6769 [CTFE] AA.keys doesn't compile when -inline is used

Don Clugston added 3 commits October 5, 2011 11:03
Undo the transformations which the inliner has done on the built-in AA
properties. We really need to clean up the runtime, what it's doing is
unnecessarily disgusting.
A side-effect of the implementation is that casts from &int[7]
to int[]* are now supported in CTFE.
A couple of minor changes is enough to make the code identical, allowing
two functions to be completely removed.
Also fixes a D1 bug in the type of .values and .keys.
WalterBright added a commit that referenced this pull request Oct 6, 2011
Fix CTFE AA bug 6769, which is breaking the autotester.
@WalterBright WalterBright merged commit f203224 into dlang:master Oct 6, 2011
dlang-bot added a commit that referenced this pull request Aug 11, 2020
Revert reinterpret cast introduced in #432, add ICE test case for 32-bit targets
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants