[Bug c++/47252] GCC Segfaults when boost/range.hpp is included and deduced parameter is a initializer_list

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 16 16:42:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47252

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-16 16:36:59 UTC ---
No segfault with 4.5.2 (20101202)


$ ~/gcc/4.5/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/home/redi/gcc/4.5/bin/g++
COLLECT_LTO_WRAPPER=/home/redi/gcc/4.5/libexec/gcc/x86_64-unknown-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.5/configure --prefix=/home/redi/gcc/4.5
--with-system-zlib --enable-__cxa_atexit --with-arch=barcelona
--enable-libstdcxx-debug --enable-libstdcxx-time --with-ppl --with-cloog
--enable-languages=c,c++ --enable-checking=release --disable-bootstrap :
(reconfigured) ../gcc-4.5/configure --prefix=/home/redi/gcc/4.5
--with-system-zlib --enable-__cxa_atexit --with-arch=barcelona
--enable-libstdcxx-debug --enable-libstdcxx-time --with-ppl --with-cloog
--enable-languages=c,c++ --enable-checking=release --disable-bootstrap
Thread model: posix
gcc version 4.5.2 20101202 (prerelease) (GCC) 
$ 
$ ~/gcc/4.5/bin/g++ reproduce.ii -std=c++0x
reproduce.cpp: In function ‘int main()’:
reproduce.cpp:18:19: warning: deducing ‘const StateSeq’ as ‘const
std::initializer_list<int>’
reproduce.cpp:11:1: warning:   in call to ‘Scope::Scope(const StateSeq&) [with
StateSeq = std::initializer_list<int>]’
reproduce.cpp:18:19: warning:   (you can disable this with
-fno-deduce-init-list)

so I guess it is fixed



More information about the Gcc-bugs mailing list