Bug 46069 - [C++0x] ill-formed use of decltype causes segfault
Summary: [C++0x] ill-formed use of decltype causes segfault
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.5.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-18 17:52 UTC by Ennio Barbaro
Modified: 2011-03-29 16:37 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2011-01-26 01:04:34


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ennio Barbaro 2010-10-18 17:52:48 UTC
Hi all,

The attached code causes a segfault in gcc 4.5.1 (Debian 4.5.1-9), mabye an infinite recursion of decltype?

my system is a debian testing (kernel 2-6.32-5-amd64)

gcc configuration options:

Target: x86_64-linux-gnu                                                                                                      
Configured with: ../src/configure -v --with-pkgversion='Debian 4.5.1-9' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --with-plugin-ld=ld.gold --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu                                  
Thread model: posix                                                                                                           
gcc version 4.5.1 (Debian 4.5.1-9)   

command line and output:
gcc-4.5 -std=c++0x bug.cpp                                                                                        
gcc-4.5: Internal error: Segmentation fault (program cc1plus)                                                                 
Please submit a full bug report.                                                                                              
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.

Ennio
Comment 1 Jonathan Wakely 2011-01-26 01:04:34 UTC
the attachment is missing
Comment 2 Jonathan Wakely 2011-03-29 16:37:55 UTC
closing due to lack of response

if you reopen it please provide the code demonstrating the problem