This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/61016] use of uninitialized memory in gcc/config/i386/i386.c
- From: "kcc at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 May 2014 11:34:24 +0000
- Subject: [Bug other/61016] use of uninitialized memory in gcc/config/i386/i386.c
- Auto-submitted: auto-generated
- References: <bug-61016-4 at http dot gcc dot gnu dot org/bugzilla/>
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);
}