Debian Bug report logs - #871250
g++-5: chokes on valid lambda code

version graph

Package: g++-5; Maintainer for g++-5 is (unknown);

Reported by: Roman Lebedev <lebedev.ri@gmail.com>

Date: Mon, 7 Aug 2017 08:27:02 UTC

Severity: normal

Tags: upstream

Found in version gcc-5/5.4.1-11

Fixed in version 5.5.0-12+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, lebedev.ri@gmail.com, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#871250; Package g++-5. (Mon, 07 Aug 2017 08:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roman Lebedev <lebedev.ri@gmail.com>:
New Bug report received and forwarded. Copy sent to lebedev.ri@gmail.com, Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Mon, 07 Aug 2017 08:27:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Roman Lebedev <lebedev.ri@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: g++-5: chokes on valid lambda code
Date: Mon, 07 Aug 2017 11:24:09 +0300
Package: g++-5
Version: 5.4.1-11
Severity: normal
Tags: upstream

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

The test-case is creduced.
Only the GCC5 fails, gcc-4.9, 6 and 7 do not.
clang-3.9, 4, 5, trunk is also fine with that code.

$ g++-7 -std=c++14 -c main.cpp
$ g++-6 -std=c++14 -c main.cpp
$ g++-5 -std=c++14 -c main.cpp
main.cpp: In instantiation of ‘d::n() const::<lambda(auto:1, d::h, d::h,
int, d::n() const::p, d::n() const::p)> [with auto:1 = d::n()
const::<lambda()>]’:
main.cpp:26:28:   required from here
main.cpp:23:11: error: ‘e’ is not captured
     if (e < e)
                ^
main.cpp:23:11: note: ‘const int& e’ declared here


I'm unable to report this upstream, since registration is closed, and
password recovery does not seem to function.

Roman.

- -- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.11.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages g++-5 depends on:
ii  gcc-5            5.4.1-11
ii  gcc-5-base       5.4.1-11
ii  libc6            2.24-14
ii  libgmp10         2:6.1.2+dfsg-1
ii  libisl15         0.18-1
ii  libmpc3          1.0.3-1+b2
ii  libmpfr4         3.1.5-1
ii  libstdc++-5-dev  5.4.1-11
ii  zlib1g           1:1.2.8.dfsg-5

g++-5 recommends no packages.

Versions of packages g++-5 suggests:
pn  g++-5-multilib    <none>
pn  gcc-5-doc         <none>
pn  libstdc++6-5-dbg  <none>

- -- no debconf information

*** /home/lebedevri/CREDUCE/main.cpp
using a = int;
using c = int;
struct d {
  struct {
    a e;
  } f;
  enum h { i, j };
  struct k {
    int l[0][0];
  };
  int m(k *, c *, a, int, int *) const;
  void n() const;
};
void d::n() const {
  c *o;
  k *info;
  struct p {
  } g;
  p b;
  int errcnt;
  const int e = f.e;
  auto pass = [&](auto, h, h, int, p, p) {
    if (e < e)
      errcnt = m(0, o, 0, 0, info->l[0]);
  };
  pass([] {}, i, j, 0, g, b);
}

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEjkF6151RK40WXe2HCDw+u0oWieAFAlmII6UACgkQCDw+u0oW
ieB6CRAAjnkVWHOURO9HG+5F7ZtqZcvkDmnNDmFSd5FnLLIEcZoY+Dogf50WPXF2
P8QRJDEYNv8+kLQ1rgQu64N6L6114ZS4KNUQM3P1ifKd4vhHZpVVWzwbfSeibNYu
1leJ257QH1p62M5nYjB2nKkr9MwmkTYBuEX1yduAliF3awclDx9s67T0z3w9kLsA
4uGMGBw6sd/LTMVfmokNUtIx+MYpL5GXR6KiapAYOqLkWHKb4LAmKi659m6ugTsI
jNmlEdE6eZhrLRVME/GP7wlw31FltZ3je7NzveFpeOW6iUT/Jcv605elpb09TI+U
HuR0vmto43bsx2gcfj2iUHpFVaNDHHJcTRKBKtIP+eCbliAI1UnVz5Frzst2fcgq
haMiOYlMPh6IyodDJ8w8qgnZkEe1k12CnGvSL47r/V6g70Z0s6yEHSX0yHnHAHmf
1vqGReehhFfndxMXtHSoT9cggXXDi/o4Wa5LCPuQwwYJkgH1NWucZwfWIV9j5UWA
E3TJTLrRavRZSR48FcSQqtt35Wa089n2E/7CYNDHpYrG8cdX1P6rK7cYR/NcAIQ/
t0J3/DLeekvHSCgNu+fVH8JPlrm0fSMzBCQ1jn1xSevuwAq4jHvBsZL8mZ/q2a5U
ey7qPKUgh8op0K2SNzZddMA3SEKyHJh2+/s70tThI91E23mdLBc=
=UHWS
-----END PGP SIGNATURE-----

Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Wed, 23 Jan 2019 10:04:32 GMT) (full text, mbox, link).


Notification sent to Roman Lebedev <lebedev.ri@gmail.com>:
Bug acknowledged by developer. (Wed, 23 Jan 2019 10:04:32 GMT) (full text, mbox, link).


Message #10 received at 871250-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 478584-done@bugs.debian.org,746426-done@bugs.debian.org,748616-done@bugs.debian.org,750834-done@bugs.debian.org,782444-done@bugs.debian.org,782824-done@bugs.debian.org,783876-done@bugs.debian.org,783883-done@bugs.debian.org,788299-done@bugs.debian.org,789666-done@bugs.debian.org,796855-done@bugs.debian.org,797971-done@bugs.debian.org,798042-done@bugs.debian.org,800543-done@bugs.debian.org,801055-done@bugs.debian.org,802699-done@bugs.debian.org,803109-done@bugs.debian.org,805820-done@bugs.debian.org,806370-done@bugs.debian.org,806760-done@bugs.debian.org,807830-done@bugs.debian.org,808471-done@bugs.debian.org,810639-done@bugs.debian.org,810819-done@bugs.debian.org,812834-done@bugs.debian.org,812889-done@bugs.debian.org,814977-done@bugs.debian.org,816366-done@bugs.debian.org,819429-done@bugs.debian.org,831457-done@bugs.debian.org,831727-done@bugs.debian.org,831809-done@bugs.debian.org,832135-done@bugs.debian.org,837557-done@bugs.debian.org,848220-done@bugs.debian.org,856274-done@bugs.debian.org,871250-done@bugs.debian.org,
Cc: gcc-5@packages.debian.org
Subject: Bug#920166: Removed package(s) from unstable
Date: Wed, 23 Jan 2019 10:00:21 +0000
Version: 5.5.0-12+rm

Dear submitter,

as the package gcc-5 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/920166

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 21 Feb 2019 07:30:16 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jul 23 17:35:43 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.