[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#570265: marked as done ([PR 26261, fixed in 5.4] Rejects template with const static data member used in return type)



Your message dated Sun, 05 Jul 2015 16:18:22 +0000
with message-id <E1ZBmcY-0006gk-9d@franck.debian.org>
and subject line Bug#707276: Removed package(s) from unstable
has caused the Debian Bug report #570265,
regarding [PR 26261, fixed in 5.4] Rejects template with const static data member used in return type
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
570265: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570265
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: g++-4.4
Version: 4.4.2-9
Severity: normal

I did report a regression upstream, which ended up in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43101 .  As requested in
README.Bugs I'm now reporting it here.

The following valid code is accepted by g++-4.3 but rejected by g++-4.4:
======================================================================
template <int dim> class X {};

template <class T> class Y {
    static const unsigned int dim = 1;
    X<Y<T>::dim> f();
};

template <class T>
X<Y<T>::dim> Y<T>::f() { return X<dim>(); }
======================================================================

There is a workaround, but it is quite difficult to find since several
variants don't work due to the ancient bug
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26261 .  The workaround is to
make a typedef for the return type and use that:
======================================================================
template <int dim> class X {};

template <class T> class Y {
  static const unsigned int dim = 1;
  typedef X<dim> Z;
  Z f();
};

template <class T>
typename Y<T>::Z Y<T>::f() { return X<dim>(); }
======================================================================

Thanks,
Jö.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages g++-4.4 depends on:
ii  gcc-4.4                   4.4.2-9        The GNU C compiler
ii  gcc-4.4-base              4.4.2-9        The GNU Compiler Collection (base 
ii  libc6                     2.10.2-2       GNU C Library: Shared libraries
ii  libgmp3c2                 2:4.3.2+dfsg-1 Multiprecision arithmetic library
ii  libmpfr1ldbl              2.4.2-3        multiple precision floating-point 
ii  libstdc++6-4.4-dev        4.4.2-9        The GNU Standard C++ Library v3 (d

g++-4.4 recommends no packages.

Versions of packages g++-4.4 suggests:
ii  g++-4.4-multilib              4.4.2-9    The GNU C++ compiler (multilib fil
pn  gcc-4.4-doc                   <none>     (no description available)
pn  libstdc++6-4.4-dbg            <none>     (no description available)

-- no debconf information

-- 
oil -- operation iraqi liberation
http://www.mo.tecsamples.de/mahnwache/index.html

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 1:4.4.7-8+rm

Dear submitter,

as the package gcc-4.4 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/707276

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.
Luca Falavigna (the ftpmaster behind the curtain)

--- End Message ---

Reply to: