D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17114 - DMD 2.073.0 Error: undefined identifier '_arrayExpComSliceAndass_k' in module 'app'
Summary: DMD 2.073.0 Error: undefined identifier '_arrayExpComSliceAndass_k' in module...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-23 08:06 UTC by Paul Crane
Modified: 2017-01-24 06:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Paul Crane 2017-01-23 08:06:39 UTC
With DMD 2.073.0 I am now getting compilation errors when compiling the code contained in https://github.com/Soulsbane/ctoptions/blob/develop/source/ctoptions/commander.d

./libs/ctoptions/source/ctoptions/commander.d(187,28): Error: undefined identifier '_arrayExpComSliceAndass_k' in module 'app'
../libs/ctoptions/source/ctoptions/commander.d(187,28): Error: undefined identifier '_arrayExpSliceAndass_k' in module 'app'
source/app.d(232,13): Error: template instance app.main.Commander!"app".Commander.process!() error instantiating

It is failing on this code:
alias member = helper!(__traits(getMember, mod, memberName));

The 'mod' variable comes from:
alias mod = helper!(mixin(modName));

This code is part of a mixin template where 'modName' is defined as
mixin template Commander(string modName = __MODULE__).

I have no idea what the problem is. This code has always worked before now. The only fix for now is I've done a static if to check for those function names and skip over them in that case.

Hopefully that's enough info! Thanks!
Comment 1 Paul Crane 2017-01-24 06:33:21 UTC
I'm still not sure what changed in the new DMD but I'ved fixed that problem. It had to deal with a library publically importing another library as far as I could see. Disregard this.