[Bug c++/54122] [4.7/4.8 Regression] segfault comparing enum class in lambda inside constructor of a templated class
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 31 08:24:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54122
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-31 08:23:38 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174499
enum E { F };
template
<typename A>
struct C
{
E e;
void f () { auto l = [&](void)->void { if (e == F) return; }; }
};
More information about the Gcc-bugs
mailing list