public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61151] New: [4.9/4.10 Regression] ICE with lambda
@ 2014-05-12  7:50 jakub at gcc dot gnu.org
  2014-05-12  7:51 ` [Bug c++/61151] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-05-12  7:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61151
           Summary: [4.9/4.10 Regression] ICE with lambda
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          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

struct B
{
  void foo () {}
};

template <class>
struct A
{
  template <class> void bar ();
  B a;
};

template <class T>
template <class U>
void
A<T>::bar ()
{
  auto f = [this] () { auto g = [=] () { a.foo (); }; g (); };
  f ();
}

int
main ()
{
  A<int> a;
  a.bar <int> ();
}

ICEs with -std=c++11 on the trunk and with 4.9 branch head, worked with 4.9.0.
On the trunk the ICE started with r210017, supposedly on the 4.9 branch with
r210018 (haven't verified the latter).


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-15 19:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-12  7:50 [Bug c++/61151] New: [4.9/4.10 Regression] ICE with lambda jakub at gcc dot gnu.org
2014-05-12  7:51 ` [Bug c++/61151] " jakub at gcc dot gnu.org
2014-05-12  8:12 ` jakub at gcc dot gnu.org
2014-05-13 16:53 ` jason at gcc dot gnu.org
2014-05-13 17:40 ` jason at gcc dot gnu.org
2014-05-13 17:54 ` jason at gcc dot gnu.org
2014-05-15 19:03 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).