Hang when function pointer in a mixin [user error]

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
m8f
 
 
Posts: 1456
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)
Contact:

Hang when function pointer in a mixin [user error]

Post by m8f »

User error.

It seems that we cannot have a function pointer in a mixin.

Steps to reproduce:
1. Load this zscript.zs:

Code: Select all

version 4.14.2

class C
{
  private Function<play void(void)> f; // OK
}

mixin class M
{
  private Function<play void(void)> f; // not OK 
}

class CM
{
  mixin M;
}
Expected result: GZDoom loads without errors.
Actual result: GZDoom hangs on load.

OS: Debian GNU/Linux 12 (bookworm), Linux 6.12.25+rpt-rpi-v8 on aarch64.
GZDoom: version g4.14.2.

If no class has this mixin, GZDoom loads correctly.
Post Reply

Return to “Closed Bugs [GZDoom]”