MantisBT - Z.C++
View Issue Details
0000026Z.C++[All Projects] Backend/Corepublic2011-01-23 02:032011-01-23 02:04
normalminorhave not tried
0000026: Warn for static const declarations of variables, whose types have trivial constructors, without initializers
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.
No tags attached.
child of 0000025new  Basic initializer support and recognition for declarations 
Issue History
2011-01-23 02:03zaimoniNew Issue
2011-01-23 02:04zaimoniRelationship addedchild of 0000025

There are no notes attached to this issue.