This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/37144] A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2008 00:46:45 -0000
- Subject: [Bug libstdc++/37144] A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp
- References: <bug-37144-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from hjl dot tools at gmail dot com 2008-12-11 00:46 -------
testsuite/util/regression/trait/assoc/type_trait.hpp has
static const_key_reference
extract_key_imp(pair_type_const_reference r_val)
{ return r_val.first; }
It may create a temporary on stack and return a reference to
the stack temporary.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37144