[Bug c++/47049] [4.5/4.6 Regression] [C++0x] ICE in write_unnamed_type_name with lambda use

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 28 17:06:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47049

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-28 16:33:07 UTC ---
Reduced testcase:

enum { E = 0, F = 1 };
template <int N, int M = ((N == 1) ? F : E)> class S;
template <int N>
struct T
{
  static void
  foo (S<N> *p)
  {
    S<N> u;
    [&u] ()->bool {};
  }
};



More information about the Gcc-bugs mailing list