This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/61016] use of uninitialized memory in gcc/config/i386/i386.c


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);
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]