Comments (1)
I'm assuming by this very brief bug that you are seeing a failure in the self-tests for your toolchain and target?
To help you debug this, It would be good to get some additional information. What compiler are you using? Are you running your tests natively or on a simulator or a target? etc.
Given which test you're seeing fail, it's possible your compiler has decided it can optimize i
by not setting it inside the loop there... or that it hasn't written it back to the actual location of i
in memory but still has it in a scratch register. If you change i
to volatile
, I suspect this test will get back to passing.
Otherwise maybe your concern is that the test itself is wrong? If this is the case, I'd encourage you to read the documentation. C doesn't have full stack unwinding the way C++ does, and CException's concept isn't to create a system with full stack unwinding. Instead, CException is meant to be a minimal lightweight error handling mechanism. It doesn't guarantee it will reverse the effects of any operations that happened on local variables within the Try
blocks.
If your question was something else, I'd appreciate a bit more detail. Thanks so much! :)
from cexception.
Related Issues (12)
- Does this nice lib work with FreeRTOS? HOT 1
- Microchip XC16: some tests fail HOT 4
- Regarding release cycle of this project HOT 5
- fails compilation on MSVC
- Add new test result: ERROR
- Test test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside fails with O2 or O3 optimization levels
- CException is missing a license file HOT 6
- Install error. Could not find command "execute". HOT 1
- Clarify conditions under which to use volatile HOT 1
- Is there a safe procedure for C++ interaction HOT 1
- Static analysis companion tool? HOT 1
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 cexception.