Bug#914470: gdc-8: ICE in gdc on call to defaulted alias template parameter that is a delegate literal
Package: gdc-8
Version: 8.2.0-9
Severity: normal
# cat perf_min.d
```
module perf_min;
void run(alias prep = delegate() {})() {
prep();
}
void main() {
run!()();
}
```
$ gdc perf_min.d
perf_min.d: In function ‘run’:
perf_min.d:3:5: internal compiler error: in get_frame_for_symbol, at d/d-codegen.cc:2161
prep();
^
0x7f626f339b16 __libc_start_main
../csu/libc-start.c:310
$
gcc version 8.2.0 (Debian 8.2.0-9)
For comparison, when compiling using ldc2:
LDC - the LLVM D compiler (1.12.0):
based on DMD v2.082.1 and LLVM 6.0.1
built with LDC - the LLVM D compiler (1.12.0)
Default target: x86_64-pc-linux-gnu
there are no issues, and generate code looks correct.
Thanks.
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-2-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gdc-8 depends on:
ii g++-8 8.2.0-9
ii gcc-8-base 8.2.0-9
ii libc6 2.27-8
ii libgmp10 2:6.1.2+dfsg-3
ii libgphobos-8-dev 8.2.0-9
ii libisl19 0.20-2
ii libmpc3 1.1.0-1
ii libmpfr6 4.0.1-1
ii zlib1g 1:1.2.11.dfsg-1
gdc-8 recommends no packages.
gdc-8 suggests no packages.
-- no debconf information
Reply to: