[Bug c++/69392] New: G++ can't capture 'this' pointer to templated type using init-capture
kyle.strand at beckman dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 20 16:48:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69392
Bug ID: 69392
Summary: G++ can't capture 'this' pointer to templated type
using init-capture
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kyle.strand at beckman dot com
Target Milestone: ---
Created attachment 37409
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37409&action=edit
Tarball with source (with comments), preprocessed source, and compiler output
G++ erroneously fails to deduce the type of the `this` pointer inside a
template-class member function when using init-capture to copy `this` into a
lambda.
My GCC version is 5.1.0 on an x86_64 architecture. My OS is Debian 8.
More information, including a comparison to Clang++ and a list of variations
that do or do not work, is available on this StackOverflow question:
http://stackoverflow.com/q/34889310/1858225
More information about the Gcc-bugs
mailing list