public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55538] New: [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035
@ 2012-11-29 22:09 etlverified at gmail dot com
  2012-11-29 22:15 ` [Bug c++/55538] " markus at trippelsdorf dot de
  2012-11-29 22:20 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: etlverified at gmail dot com @ 2012-11-29 22:09 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55538
           Summary: [C++11] ICE when calling a member function from lambda
                    in templated class; in get_expr_operands, at
                    tree-ssa-operands.c:1035
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: etlverified@gmail.com


Input:
------
#include <functional>

struct IBar
{
    virtual void runLambda(const std::function<void ()>& func) const = 0;
};

template<bool x>
struct Foo
{
    void test(IBar* b)
    {
        b->runLambda([this]() { onTest(); });
    }

    void onTest() {}
};

int main(int argc, char** argv)
{
    Foo<true> f;
    f.test(nullptr);

    return 0;
}

Output:
-------
test.cpp: In lambda function:
test.cpp:25:1: internal compiler error: in get_expr_operands, at
tree-ssa-operands.c:1035


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

* [Bug c++/55538] [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035
  2012-11-29 22:09 [Bug c++/55538] New: [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035 etlverified at gmail dot com
@ 2012-11-29 22:15 ` markus at trippelsdorf dot de
  2012-11-29 22:20 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-29 22:15 UTC (permalink / raw)
  To: gcc-bugs


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-11-29 22:14:57 UTC ---
Jason fixed this a few minutes ago:
http://gcc.gnu.org/viewcvs?view=revision&revision=193957


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

* [Bug c++/55538] [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035
  2012-11-29 22:09 [Bug c++/55538] New: [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035 etlverified at gmail dot com
  2012-11-29 22:15 ` [Bug c++/55538] " markus at trippelsdorf dot de
@ 2012-11-29 22:20 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-29 22:20 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-29 22:19:50 UTC ---
Dup

*** This bug has been marked as a duplicate of bug 53137 ***


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

end of thread, other threads:[~2012-11-29 22:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29 22:09 [Bug c++/55538] New: [C++11] ICE when calling a member function from lambda in templated class; in get_expr_operands, at tree-ssa-operands.c:1035 etlverified at gmail dot com
2012-11-29 22:15 ` [Bug c++/55538] " markus at trippelsdorf dot de
2012-11-29 22:20 ` paolo.carlini at oracle dot com

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).