This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/64496] New: [4.8/4.9/5 Regression] ICE with NSDMI and lambda


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64496

            Bug ID: 64496
           Summary: [4.8/4.9/5 Regression] ICE with NSDMI and lambda
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: jason at gcc dot gnu.org

template <typename> class B;
template <typename W, typename... X>
struct B<W(X...)> { template <typename F> B(F); };
template <typename W, typename... X>
template <typename F>
B<W(X...)>::B(F) {}

int
main()
{
  int a;
  struct A
  {
    B<void()> l = [=] { a; };
  };
  A t;
}

ICEs with -std=c++0x starting with r179155.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]