View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
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. |
Tags | No tags attached. |
|
Attached Files | |
|