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

           Summary: Segmentation fault with default lambda parameter in
                    member function
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: lepesme...@gmail.com


Created attachment 24424
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24424
The segfault source + 2 different sources that pass + temps + compile logs

Hi, I don't know if what I'm doing is correct, but GCC crashs on it.

Segfault: Member function with a default lambda parameter.
Pass-1: Global function with a default lambda parameter.
Pass-2: Member function without default lambda parameter.

[jiboo@localhost gccbag]$ uname -a
Linux localhost.localdomain 2.6.38.6-27.fc15.x86_64 #1 SMP Sun May 15 17:23:28
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

[jiboo@localhost gccbag]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.6.0/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.0 20110509 (Red Hat 4.6.0-7) (GCC) 

[jiboo@localhost gccbag]$ g++ -v -save-temps -Wall -Wextra -fno-strict-aliasing
-fwrapv -std=c++0x boog-pass-1.cpp 2>boog-pass-1.log
[jiboo@localhost gccbag]$ g++ -v -save-temps -Wall -Wextra -fno-strict-aliasing
-fwrapv -std=c++0x boog-pass-2.cpp 2>boog-pass-2.log
[jiboo@localhost gccbag]$ g++ -v -save-temps -Wall -Wextra -fno-strict-aliasing
-fwrapv -std=c++0x boog-segfault.cpp 2>boog-segfault.log

Reply via email to