Comments (5)
I can confirm that the tests compile on GCC 11.1 (via Docker image gcc:11.1) with -DCMAKE_BUILD_TYPE=Debug
but meet the same error as @zxhcho with -DCMAKE_BUILD_TYPE=Release
.
from proxy.
@zxhcho Thank you for your feedback! We already have pipelines running on Ubuntu (see Actions) that build the tests with GCC and did not notice any issue so far. As you mentioned MSVC, are you using GCC on Windows? If so, could you double check if CMake is properly configured with your compiler? If this issue persists and the environment is confirmed to be good, please feel free to let us know more about how your compiler and toolchains are configured so that we can repro it and help investigate further.
Ok, I build it on Ubuntu 22.04
with gcc-11.2
and Release
version. When I switch to Debug
, the error will not occur as @Shuenhoy
from proxy.
@zxhcho Thank you for your feedback! We already have pipelines running on Ubuntu (see Actions) that build the tests with GCC and did not notice any issue so far. As you mentioned MSVC, are you using GCC on Windows? If so, could you double check if CMake is properly configured with your compiler? If this issue persists and the environment is confirmed to be good, please feel free to let us know more about how your compiler and toolchains are configured so that we can repro it and help investigate further.
from proxy.
Lines 420 to 429 in 531dfcc
Currently self-move-assignment can result in reading *this
when *this
is destroyed, which is UB. I think we should perform the operations only if this != std::addressof(rhs)
.
from proxy.
@frederick-vs-ja I did not notice it is a UB of proxy
to move-assign to itself. Thank you for the investigation!
from proxy.
Related Issues (20)
- Time to revise the name of constraints
- Lack support of overload resolution among multiple existing abstractions
- Compilation error on MSVC 19.36 HOT 1
- [FR] noexcept prototypes/signatures HOT 3
- [FR] Add std::function_ref equivalent functionality HOT 4
- [FR] SBO-only targets HOT 2
- [FR] Add std::function::target() equivalent HOT 1
- [FR] operator bool HOT 1
- [QoI] When the metadata of proxy is small enough, dereferencing the metadata can be eliminated
- What's the performance comparing to inheritance with virtual function? HOT 1
- Support tuple-like types in the definition of `overload_types` in a dispatch type and `dispatch_types` in a facade type
- Support allocator-aware overloads of factory functions for `proxy`
- Have a syntax to declare default implementation of a dispatch easier and avoid generating duplicated code
- Undefined behavior: Field `ptr_` of `proxy` is accessed with potentially wrong compile-time assumption HOT 4
- QoI: Avoid generating duplicated code for special pointer types
- Missing API to interact with the underlying pointer types
- Add APIs for in-place construction of a target
- Compile error when `-ffreestanding` is enabled on GCC
- Add pipelines for freestanding environment
- Fail to build with GCC 11.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxy.