[Bug other/61016] use of uninitialized memory in gcc/config/i386/i386.c
kcc at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 6 11:34:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61016
--- Comment #1 from Kostya Serebryany <kcc at gcc dot gnu.org> ---
Slightly more reduced test:
template <typename T>
struct vector {
void resize(int, T = T()) {}
};
class UnknownField;
class UnknownFieldSet {
void DeleteByNumber (int);
vector < UnknownField > *fields_;
};
class UnknownField {
long a;
union {
void *b;
};
};
void UnknownFieldSet::DeleteByNumber (int) {
fields_->resize (0);
}
More information about the Gcc-bugs
mailing list