Package: g++-6 Version: 6.4.0-4 Severity: normal Dear Maintainer,
while playing with lambdas, I ran into an internal compiler error. This snippet: int main(void) { auto v = [](auto i = []{return 42;}()) {return i;}.operator()<int>(); } causes the following error message: % g++ -save-temps -o l l.cpp; l.cpp: In lambda function: l.cpp:3:5: internal compiler error: in tsubst_decl, at cp/pt.c:11753 int main(void) { ^~~~ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions. -- System Information: Debian Release: 7.4 APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=ru_RU.koi8r, LC_CTYPE=ru_RU.koi8r (charmap=KOI8-R), LANGUAGE=ru_RU.koi8r (charmap=KOI8-R) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages g++-6 depends on: ii gcc-6 6.4.0-4 ii gcc-6-base 6.4.0-4 ii libc6 2.24-9 ii libgmp10 2:6.1.2+dfsg-1 ii libisl15 0.17.1-1 ii libmpc3 1.0.1-1 ii libmpfr4 3.1.3-1 ii libstdc++-6-dev 6.4.0-4 ii zlib1g 1:1.2.8.dfsg-2+b1 g++-6 recommends no packages. Versions of packages g++-6 suggests: pn g++-6-multilib <none> ii gcc-6-doc 6.1.0-1 pn libstdc++6-6-dbg <none> -- no debconf information