This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/14365] gdb crashes when checking ctor of lambdas (inis_ctor_or_dtor)
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 01 Aug 2012 18:57:50 +0000
- Subject: [Bug c++/14365] gdb crashes when checking ctor of lambdas (inis_ctor_or_dtor)
- Auto-submitted: auto-generated
- References: <bug-14365-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14365
--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2012-08-01 18:57:50 UTC ---
BTW I reproduced using the reported test case:
#include <sigc++/sigc++.h>
#if __cplusplus >= 201100L || defined (__GXX_EXPERIMENTAL_CXX0X__)
#include <type_traits>
namespace sigc
{
template <typename Functor>
struct functor_trait<Functor, false>
{
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
#endif
int main()
{
sigc::slot <bool> slot3 = [] () -> bool { return true; };
sigc::slot <bool, int> slot4 = [] (int) -> bool { return true; };
while (1);
}
and building it on Fedora 16 with
g++ -std=c++0x -g -o pr pr.cc $(pkg-config --cflags sigc++-2.0) $(pkg-config
--libs sigc++-2.0)
Simplest way to see it is "gdb -readnow pr"
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.