This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54403] New: [C++11] operator! applied to a member of a templated class in a lambda expression that captures 'this' pointer crashes compiler


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

             Bug #: 54403
           Summary: [C++11] operator! applied to a member of a templated
                    class in a lambda expression that captures 'this'
                    pointer crashes compiler
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ripper-tm@yandex.ru


Created attachment 28097
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28097
Source code

operator! applied to a member of a templated class in lambda that captures this
pointer crashes g++-4.7.1:

$ g++-4.7.1 bug.cpp -c --std=c++0x
bug.cpp: In lambda function:
bug.cpp:10:27: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions. 

$ g++-4.7.1 --version
g++-4.7.1 (Gentoo 4.7.1 p1.0, pie-0.5.3) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ emerge -pv gcc
...
[ebuild   R   #] sys-devel/gcc-4.7.1  USE="cxx fortran mudflap multislot nls
nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -go -graphite
-gtk (-hardened) (-libssp) (-multilib) -nocxx -nopie -nossp -objc -objc++
-objc-gc -test -vanilla" 36 kB


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]