public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56447] New: [C++11] Lambda in template has conversion op it shouldn't have
@ 2013-02-25 20:01 jason at gcc dot gnu.org
  2013-02-25 21:02 ` [Bug c++/56447] " jason at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2013-02-25 20:01 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56447
           Summary: [C++11] Lambda in template has conversion op it
                    shouldn't have
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jason@gcc.gnu.org


template <class T>
void f()
{
  int i;
  // This lambda should not have a conversion op, since it captures i
  int (*p)() = [=]{ return i; }; // { dg-error "cannot convert" }
}


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

end of thread, other threads:[~2013-03-23 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-25 20:01 [Bug c++/56447] New: [C++11] Lambda in template has conversion op it shouldn't have jason at gcc dot gnu.org
2013-02-25 21:02 ` [Bug c++/56447] " jason at gcc dot gnu.org
2013-03-04 18:11 ` jason at gcc dot gnu.org
2013-03-17  2:36 ` jason at gcc dot gnu.org
2013-03-23 19:00 ` 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).