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
* [Bug c++/56447] [C++11] Lambda in template has conversion op it shouldn't have 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 ` jason at gcc dot gnu.org 2013-03-04 18:11 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2013-02-25 21:02 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56447 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-02-25 Ever Confirmed|0 |1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/56447] [C++11] Lambda in template has conversion op it shouldn't have 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 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2013-03-04 18:11 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56447 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |temtaime at gmail dot com --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-04 18:10:40 UTC --- *** Bug 54995 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/56447] [C++11] Lambda in template has conversion op it shouldn't have 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 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2013-03-17 2:36 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56447 --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-17 02:35:34 UTC --- Author: jason Date: Sun Mar 17 02:35:18 2013 New Revision: 196729 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196729 Log: PR c++/56447 PR c++/55532 * pt.c (instantiate_class_template_1): Instantiate lambda capture list here. (tsubst_copy_and_build): Not here. Added: trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv8.C trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/56447] [C++11] Lambda in template has conversion op it shouldn't have 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 ` (2 preceding siblings ...) 2013-03-17 2:36 ` jason at gcc dot gnu.org @ 2013-03-23 19:00 ` jason at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2013-03-23 19:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56447 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.8.1 --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-23 19:00:21 UTC --- Fixed for 4.8.1. ^ 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).