https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123411
--- Comment #3 from Iain Buclaw <ibuclaw at gcc dot gnu.org> ---
(In reply to Iain Buclaw from comment #2)
> Obviously, the problem isn't with mixins per-say. Just the code that gets
> generated by them.
>
> ```
> alias joinFnBinds = bindbc.common.codegen.joinFnBinds!false;
> alias FnBind = bindbc.common.codegen.FnBind;
> alias makeEnumBind = bindbc.common.codegen.makeEnumBind!(true, true);
> alias EnumMember = bindbc.common.codegen.EnumMember;
> alias EnumIden = bindbc.common.codegen.EnumIden;
> ```
>
> This allows to reduce the test further.
And
```
enum SDL_JoystickType{ unknown }
enum: SDL_JoystickType{ SDL_JOYSTICK_TYPE_UNKNOWN }
private nothrow @nogc{
alias _pSDL_LockJoysticks = void function();
alias _pSDL_GetJoystickTypeForID = SDL_JoystickType function();
}
__gshared nothrow @nogc{
_pSDL_LockJoysticks _SDL_LockJoysticks;
void SDL_LockJoysticks(){ return _SDL_LockJoysticks(); }
_pSDL_GetJoystickTypeForID _SDL_GetJoystickTypeForID;
SDL_JoystickType SDL_GetJoystickTypeForID(){ return
_SDL_GetJoystickTypeForID(); }
}
```