galipremsagar opened a new pull request #10257:
URL: https://github.com/apache/arrow/pull/10257


   With the nvcc 11.2 compiler we have a segfault when we have a copy and move 
assignment operator : 
   ```
   using Impl::operator=;
   ``` 
   before a move-assignment operator:
   
    ```
   Variant& operator=(Variant&& other) noexcept {
     this->destroy();
     other.move_to(this);
     return *this;
   }
   ```
   
   A minimal repro :
   
   With a segfault : https://godbolt.org/z/h9eYv6zas
   
   Without a segfault : https://godbolt.org/z/oWhK5qPd8
   
   In this PR, as a workaround, we have essentially re-ordered the 
move-assignment of `Variant` before `using Impl::operator=;`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to