Bug 56632 - [C++0x] call mem func from lambda with captured "this" - internal compiler error
Summary: [C++0x] call mem func from lambda with captured "this" - internal compiler error
Status: RESOLVED DUPLICATE of bug 53137
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.7.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 11:55 UTC by galuza
Modified: 2013-03-16 13:04 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work: 4.7.3, 4.8.0
Known to fail:
Last reconfirmed:


Attachments
call member func from lambda from another func (126 bytes, application/octet-stream)
2013-03-16 11:55 UTC, galuza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description galuza 2013-03-16 11:55:33 UTC
Created attachment 29679 [details]
call member func from lambda from another func

>g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/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 --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --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.7.2 20121109 (Red Hat 4.7.2-8) (GCC) 

>g++ -std=c++11 bug.cpp 
bug.cpp: In lambda function:
bug.cpp:16:1: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:1035


it's normal compile and work, if I change 
[this]() { f(); }();
to
[this]() { this->f(); }();
Comment 1 galuza 2013-03-16 12:18:40 UTC
This bug is only in template class
Comment 2 Paolo Carlini 2013-03-16 12:47:36 UTC
This is already fixed for 4.7.3.
Comment 3 Paolo Carlini 2013-03-16 13:04:11 UTC

*** This bug has been marked as a duplicate of bug 53137 ***