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 c++/70909] Libiberty Demangler segfaults (4)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909

--- Comment #21 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Why doesn't a mark/walk/unmark idiom when walking a potentially circular data
structure work here?  I.e. add a mutable counter to demangle_component. 
Inc/dec at start/end of d_print_comp? IIUC if it gets to >1 there's a problem.

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