MantisBT - Z.C++ |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0000026 | Z.C++ | [All Projects] Backend/Core | public | 2011-01-23 02:03 | 2011-01-23 02:04 |
|
Reporter | zaimoni | |
Assigned To | | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | Vaporware | Fixed in Version | | |
|
Summary | 0000026: Warn for static const declarations of variables, whose types have trivial constructors, without initializers |
Description | The variable isn't usable (undefined behavior) until it's initialized to a valid value, and it takes a const_cast to do that. const_cast could fail at runtime if the variable lands in a read-only section. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | child of | 0000025 | new | | Basic initializer support and recognition for declarations |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2011-01-23 02:03 | zaimoni | New Issue | |
2011-01-23 02:04 | zaimoni | Relationship added | child of 0000025 |