[Bug c++/82930] [C++17] ICE: in is_normal_capture_proxy, at cp/lambda.c:288 with structured binding in a lambda function with auto typed arguments
hotguest1 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 8 03:46:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82930
sandthorn <hotguest1 at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hotguest1 at hotmail dot com
--- Comment #3 from sandthorn <hotguest1 at hotmail dot com> ---
I also confirm this on GCC 8.0.1 20180206,
but GCC 7.3 seems okey with code below.
https://godbolt.org/g/kwDaVE
auto lam = [](auto structured_bindable){ // also error with auto&
auto [first,second] = structured_bindable; // also error with
auto&
auto test_access = first;
};
g++ (GCC-Explorer-Build) 8.0.1 20180206 (experimental)
<source>: In lambda function:
<source>:3:35: internal compiler error: in is_normal_capture_proxy, at
cp/lambda.c:288
auto test_access = first;
^~~~~
mmap: Invalid argument
More information about the Gcc-bugs
mailing list