[Bug c++/80947] [6/7/8 Regression] Different visibility for the lambda and its capture list members with -fvisibility=hidden

vladz at scylladb dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 14 17:56:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80947

--- Comment #5 from Vlad Zolotarov <vladz at scylladb dot com> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Vlad Zolotarov from comment #1)
> > Created attachment 41472 [details]
> > an ii value generated by g++-6
> 
> This is a URL not a preprocessed file.

The file is too big to be attached directly therefore I've attached the URL
that leads you to the file in question like it was recommended by Bugzilla when
I tried to attach the file.

> 
> Reproducer from comment 2 (thanks):
> 
> template<class T>
> class MyClass  {
> public:
>     MyClass() {
>         auto outer = [this]()
>             {
>                 auto fn = [this]   { };
>             };
>     }
> };
> int main() { MyClass<int> r; }


More information about the Gcc-bugs mailing list