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

Bug#641374: g++-4.6: internal compiler error with a simple program in C++0x mode



Package: g++-4.6
Version: 4.6.1-10
Severity: normal

Hi,

the following program causes a segmentation fault in cc1plus when I compile it
with g++ -std=c++0x.

template<typename T> struct bla {};
template<typename U, typename V> auto operator*(const U& u, const bla<V>& v) ->
bla<decltype(u*v)> { return bla<decltype(u*v)>(); };
int main() {
  4*bla<int>();
}


Cheers
Matthias



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

Kernel: Linux 3.0.0-1-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-10        
ii  gcc-4.6-base        4.6.1-10        
ii  libc6               2.13-20         
ii  libgmp10            2:5.0.2+dfsg-1  
ii  libmpc2             0.9-3           
ii  libmpfr4            3.0.1-6         
ii  libstdc++6-4.6-dev  4.6.1-10        
ii  zlib1g              1:1.2.3.4.dfsg-3

g++-4.6 recommends no packages.

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

-- no debconf information



Reply to: