This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77340] Invalid (Stack Smashing) Code Generated In Simple Cases With Debug-Mode Vectors
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Aug 2016 08:30:35 +0000
- Subject: [Bug c++/77340] Invalid (Stack Smashing) Code Generated In Simple Cases With Debug-Mode Vectors
- Auto-submitted: auto-generated
- References: <bug-77340-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77340
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ah no, as I thought ... main.cpp includes a standard library header before
_GLIBCXX_DEBUG is defined, and defining it after that is too late.
You need to define _GLIBCXX_DEBUG on the command line, or before including any
other headers.