Bug#632938: g++-4.6: 4.6.1-2 broke boost::multi_array when compiling with -std=c++0x

2011-07-07 Thread Matthias Berndt
Package: g++-4.6
Version: 4.6.1-2
Severity: normal

Hi,

with g++-4.6.1-1, the following program compiled fine with the -std=c++0x
command line switch:

#include 
int main() {
  boost::multi_array x(boost::extents[1][2][3]);
}

Since g++-4.6.1-2, it doesn't compile any longer (it does compile with
-std=c++03).
The error message looks like this:


In file included from /usr/include/boost/multi_array/range_list.hpp:19:0,
 from /usr/include/boost/multi_array/extent_gen.hpp:17,
 from /usr/include/boost/multi_array/base.hpp:22,
 from /usr/include/boost/multi_array.hpp:21,
 from test.cc:1:
/usr/include/boost/array.hpp: In constructor
‘boost::array,
2u>::array(boost::array, 2u>&&)’:
/usr/include/boost/array.hpp:58:11:   instantiated from
‘boost::detail::multi_array::extent_gen<(NumRanges + 1)>
boost::detail::multi_array::extent_gen::operator[](boost::detail::multi_array::extent_gen::index)
[with unsigned int NumRanges = 1u,
boost::detail::multi_array::extent_gen::index = int]’
test.cc:4:51:   instantiated from here
/usr/include/boost/array.hpp:58:11: error: temporary of non-literal type
‘boost::detail::multi_array::extent_range [2]’ in a
constant expression
In file included from /usr/include/boost/multi_array/base.hpp:22:0,
 from /usr/include/boost/multi_array.hpp:21,
 from test.cc:1:
/usr/include/boost/multi_array/extent_gen.hpp: In constructor ‘constexpr
boost::detail::multi_array::extent_gen<2u>::extent_gen(boost::detail::multi_array::extent_gen<2u>&&)’:
/usr/include/boost/multi_array/extent_gen.hpp:28:7: note: synthesized method
‘boost::array,
2u>::array(boost::array, 2u>&&)’ first required here
/usr/include/boost/multi_array/extent_gen.hpp:28:7: error:
‘boost::array,
2u>::array(boost::array, 2u>&&)’ is not ‘constexpr’
/usr/include/boost/multi_array/extent_gen.hpp: In member function
‘boost::detail::multi_array::extent_gen<(NumRanges + 1)>
boost::detail::multi_array::extent_gen::operator[](boost::detail::multi_array::extent_gen::index)
[with unsigned int NumRanges = 1u,
boost::detail::multi_array::extent_gen::index = int]’:
/usr/include/boost/multi_array/extent_gen.hpp:62:54: note: synthesized method
‘boost::detail::multi_array::extent_gen<2u>::extent_gen(boost::detail::multi_array::extent_gen<2u>&&)’
first required here
In file included from /usr/include/boost/multi_array/range_list.hpp:19:0,
 from /usr/include/boost/multi_array/extent_gen.hpp:17,
 from /usr/include/boost/multi_array/base.hpp:22,
 from /usr/include/boost/multi_array.hpp:21,
 from test.cc:1:
/usr/include/boost/array.hpp: In constructor
‘boost::array,
3u>::array(boost::array, 3u>&&)’:
/usr/include/boost/array.hpp:58:11:   instantiated from
‘boost::detail::multi_array::extent_gen<(NumRanges + 1)>
boost::detail::multi_array::extent_gen::operator[](boost::detail::multi_array::extent_gen::index)
[with unsigned int NumRanges = 2u,
boost::detail::multi_array::extent_gen::index = int]’
test.cc:4:54:   instantiated from here
/usr/include/boost/array.hpp:58:11: error: temporary of non-literal type
‘boost::detail::multi_array::extent_range [3]’ in a
constant expression
In file included from /usr/include/boost/multi_array/base.hpp:22:0,
 from /usr/include/boost/multi_array.hpp:21,
 from test.cc:1:
/usr/include/boost/multi_array/extent_gen.hpp: In constructor ‘constexpr
boost::detail::multi_array::extent_gen<3u>::extent_gen(boost::detail::multi_array::extent_gen<3u>&&)’:
/usr/include/boost/multi_array/extent_gen.hpp:28:7: note: synthesized method
‘boost::array,
3u>::array(boost::array, 3u>&&)’ first required here
/usr/include/boost/multi_array/extent_gen.hpp:28:7: error:
‘boost::array,
3u>::array(boost::array, 3u>&&)’ is not ‘constexpr’
/usr/include/boost/multi_array/extent_gen.hpp: In member function
‘boost::detail::multi_array::extent_gen<(NumRanges + 1)>
boost::detail::multi_array::extent_gen::operator[](boost::detail::multi_array::extent_gen::index)
[with unsigned int NumRanges = 2u,
boost::detail::multi_array::extent_gen::index = int]’:
/usr/include/boost/multi_array/extent_gen.hpp:62:54: note: synthesized method
‘boost::detail::multi_array::extent_gen<3u>::extent_gen(boost::detail::multi_array::extent_gen<3u>&&)’
first required here



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-2-686-pae (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/bash

Versions of packages g++-4.6 depends on:
ii  gcc-4.6 4.6.1-2  GNU C compiler
ii  gcc-4.6-base4.6.1-2  GCC, the GNU Compiler Collection (
ii  libc6   2.13-10  Embedded GNU C Library: Shared lib
ii  libcloog-ppl0   0.15.9-3 the Chunky Loop Generator (runtime
ii  libgmp10 

Processed: [bts-link] source package gcc-4.6

2011-07-07 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> #
> # bts-link upstream status pull for source package gcc-4.6
> # see http://lists.debian.org/debian-devel-announce/2006/05/msg1.html
> #
> user bts-link-upstr...@lists.alioth.debian.org
Setting user to bts-link-upstr...@lists.alioth.debian.org (was 
bts-link-de...@lists.alioth.debian.org).
> # remote status report for #629137 (http://bugs.debian.org/629137)
> #  * http://gcc.gnu.org/PR49595
> #  * remote status changed: (?) -> RESOLVED
> #  * remote resolution changed: (?) -> INVALID
> #  * closed upstream
> tags 629137 + fixed-upstream
Bug #629137 [gcc-4.6] gcc-4.6: on amd64, sizeof(__int128_t) > sizeof(intmax_t)
Added tag(s) fixed-upstream.
> usertags 629137 + status-RESOLVED resolution-INVALID
Bug#629137: gcc-4.6: on amd64, sizeof(__int128_t) > sizeof(intmax_t)
There were no usertags set.
Usertags are now: status-RESOLVED resolution-INVALID.
> # remote status report for #632510 (http://bugs.debian.org/632510)
> #  * http://gcc.gnu.org/PR49621
> #  * remote status changed: (?) -> ASSIGNED
> usertags 632510 + status-ASSIGNED
Bug#632510: internal compiler error: in trunc_int_for_mode, at explow.c:56
There were no usertags set.
Usertags are now: status-ASSIGNED.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
632510: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632510
629137: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629137
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/handler.s.c.131005672822842.transcr...@bugs.debian.org



[bts-link] source package gcc-4.6

2011-07-07 Thread bts-link-upstream
#
# bts-link upstream status pull for source package gcc-4.6
# see http://lists.debian.org/debian-devel-announce/2006/05/msg1.html
#

user bts-link-upstr...@lists.alioth.debian.org

# remote status report for #629137 (http://bugs.debian.org/629137)
#  * http://gcc.gnu.org/PR49595
#  * remote status changed: (?) -> RESOLVED
#  * remote resolution changed: (?) -> INVALID
#  * closed upstream
tags 629137 + fixed-upstream
usertags 629137 + status-RESOLVED resolution-INVALID

# remote status report for #632510 (http://bugs.debian.org/632510)
#  * http://gcc.gnu.org/PR49621
#  * remote status changed: (?) -> ASSIGNED
usertags 632510 + status-ASSIGNED

thanks


--
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110707163848.13576.84655.btsl...@busoni.debian.org



Bug#633073: gcc-defaults: Please set default to 4.6 for sh4

2011-07-07 Thread Nobuhiro Iwamatsu
Source: gcc-defaults
Version: 1.105
Severity: wishlist
Tags: patch
User: debian-...@superh.org
Usertags: sh4
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

sh4 of gcc and gcj is working.
Could you set default to 4.6 for sh4?

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
Index: rules
===
--- rules	(リビジョン 5392)
+++ rules	(作業コピー)
@@ -142,8 +142,8 @@
 DEB_HOST_GNU_TYPE	:= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_HOST_MULTIARCH	:= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-gcc46_archs = amd64 armel armhf hppa i386 lpia mips mipsel powerpc ppc64 s390 kfreebsd-amd64 kfreebsd-i386 hurd-i386
-gcj46_archs = amd64 armel armhf hppa i386 lpia mips mipsel powerpc ppc64 s390 kfreebsd-amd64 kfreebsd-i386 hurd-i386
+gcc46_archs = amd64 armel armhf hppa i386 lpia mips mipsel powerpc ppc64 s390 sh4 kfreebsd-amd64 kfreebsd-i386 hurd-i386
+gcj46_archs = amd64 armel armhf hppa i386 lpia mips mipsel powerpc ppc64 s390 sh4 kfreebsd-amd64 kfreebsd-i386 hurd-i386
 
 # CV_XXX is the complete version number, including the release, without epoch
 CV_CHILL:= 2.95.4-$(REL_NO_295)