public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
@ 2014-08-27  8:15 ` rguenth at gcc dot gnu.org
  2015-02-21 20:48 ` guille at cal dot berkeley.edu
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-27  8:15 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-08-27
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.

#1  0x0000000000ba3fb8 in gimplify_var_or_parm_decl (expr_p=0x7ffff68356b0)
    at /space/rguenther/src/svn/trunk/gcc/gimplify.c:1759
1759          gcc_assert (seen_error ());
(gdb) l
1754      if (TREE_CODE (decl) == VAR_DECL
1755          && !DECL_SEEN_IN_BIND_EXPR_P (decl)
1756          && !TREE_STATIC (decl) && !DECL_EXTERNAL (decl)
1757          && decl_function_context (decl) == current_function_decl)
1758        {
1759          gcc_assert (seen_error ());
1760          return GS_ERROR;

(gdb) p debug_tree (decl)
 <var_decl 0x7ffff6831090 this
    type <pointer_type 0x7ffff682a150
...
    align 64 context <function_decl 0x7ffff682bc00 operator()>
    value-expr <component_ref 0x7ffff67c3f30 type <pointer_type 0x7ffff682a150>
        readonly
        arg 0 <indirect_ref 0x7ffff682e660 type <record_type 0x7ffff682f150
__lambda0>
            arg 0 <parm_decl 0x7ffff682c400 __closure>>
        arg 1 <field_decl 0x7ffff68302f8 __this type <pointer_type
0x7ffff682a150>
            used unsigned nonlocal decl_7 DI file t.ii line 11 col 18 size
<integer_cst 0x7ffff66c4de0 64> unit size <integer_cst 0x7ffff66c4df8 8>
            align 64 offset_align 128
            offset <integer_cst 0x7ffff66c4e10 constant 0>
            bit offset <integer_cst 0x7ffff66c4e58 constant 0> context
<record_type 0x7ffff682af18 __lambda0> chain <type_decl 0x7ffff6813ed8
__lambda0>>>>

seems like un-nesting didn't work somehow?


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

* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
  2014-08-27  8:15 ` [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas rguenth at gcc dot gnu.org
@ 2015-02-21 20:48 ` guille at cal dot berkeley.edu
  2015-08-17  6:25 ` trippels at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: guille at cal dot berkeley.edu @ 2015-02-21 20:48 UTC (permalink / raw)
  To: gcc-bugs

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

Guille <guille at cal dot berkeley.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |guille at cal dot berkeley.edu

--- Comment #3 from Guille <guille at cal dot berkeley.edu> ---
For what it's worth, it compiles with the following modification [adding
"this->" to the Foo call]:

template<typename T> class B
{
    public:
        void Foo() {}
        void Bar()
        {
            [&]()
            {
                [&]() { this->Foo(); }();
            }();
        }
};

int main( int argc, char** argv )
{
    B<int> b;
    b.Bar();
    return 0;
}

Without the "this->", it compiles in neither 4.9.2, nor 5.0.0.


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

* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-08-17  6:25 ` trippels at gcc dot gnu.org
@ 2015-08-17  6:25 ` trippels at gcc dot gnu.org
  2015-08-17 19:29 ` trippels at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-17  6:25 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shadewind at gmail dot com

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 67244 has been marked as a duplicate of this bug. ***


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

* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
  2014-08-27  8:15 ` [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas rguenth at gcc dot gnu.org
  2015-02-21 20:48 ` guille at cal dot berkeley.edu
@ 2015-08-17  6:25 ` trippels at gcc dot gnu.org
  2015-08-17  6:25 ` trippels at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-17  6:25 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppluzhnikov at google dot com

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 58907 has been marked as a duplicate of this bug. ***


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

* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-08-17  6:25 ` trippels at gcc dot gnu.org
@ 2015-08-17 19:29 ` trippels at gcc dot gnu.org
  2015-08-17 19:50 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-17 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 58907 has been marked as a duplicate of this bug. ***


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

* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2015-08-17 19:29 ` trippels at gcc dot gnu.org
@ 2015-08-17 19:50 ` jason at gcc dot gnu.org
  2015-08-17 19:53 ` trippels at gcc dot gnu.org
  2015-08-17 21:28 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-17 19:50 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.3

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 5.3.


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

* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2015-08-17 19:50 ` jason at gcc dot gnu.org
@ 2015-08-17 19:53 ` trippels at gcc dot gnu.org
  2015-08-17 21:28 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-17 19:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #8)
> Fixed for 5.3.

Well, 4.9.3 still ICEs.


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

* [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas
       [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2015-08-17 19:53 ` trippels at gcc dot gnu.org
@ 2015-08-17 21:28 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-17 21:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #9)
> (In reply to Jason Merrill from comment #8)
> > Fixed for 5.3.
> 
> Well, 4.9.3 still ICEs.

Yes, but this isn't a regression.


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

end of thread, other threads:[~2015-08-17 21:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-62272-4@http.gcc.gnu.org/bugzilla/>
2014-08-27  8:15 ` [Bug c++/62272] Gimplify throws error on method call from inside nested lambdas rguenth at gcc dot gnu.org
2015-02-21 20:48 ` guille at cal dot berkeley.edu
2015-08-17  6:25 ` trippels at gcc dot gnu.org
2015-08-17  6:25 ` trippels at gcc dot gnu.org
2015-08-17 19:29 ` trippels at gcc dot gnu.org
2015-08-17 19:50 ` jason at gcc dot gnu.org
2015-08-17 19:53 ` trippels at gcc dot gnu.org
2015-08-17 21:28 ` 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).