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

Reply via email to