public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53921] New: [C++0x] ICE on lambda inside method of class template
@ 2012-07-11  2:16 philip.pronin at gmail dot com
  2012-07-11 19:48 ` [Bug c++/53921] " daniel.kruegler at googlemail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: philip.pronin at gmail dot com @ 2012-07-11  2:16 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53921
           Summary: [C++0x] ICE on lambda inside method of class template
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: philip.pronin@gmail.com


$ g++ -std=c++0x -Wall -Wextra bug.cpp
bug.cpp: In lambda function:
bug.cpp:6:34: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

g++ --version
g++ (GCC) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

void bar(int) { }

template <class X>
struct B {
  void foo() {
    auto c = [this]() { bar(value); };
  }
  int value;
};


Additional info: not reproducible using gcc 4.6.2. Successfully compiles if you
access 'value' using 'this' (this->value).


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

* [Bug c++/53921] [C++0x] ICE on lambda inside method of class template
  2012-07-11  2:16 [Bug c++/53921] New: [C++0x] ICE on lambda inside method of class template philip.pronin at gmail dot com
@ 2012-07-11 19:48 ` daniel.kruegler at googlemail dot com
  2012-10-03 23:53 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-07-11 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-07-11 19:48:17 UTC ---
The problem also exists in gcc 4.8.0 20120708 (experimental)


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

* [Bug c++/53921] [C++0x] ICE on lambda inside method of class template
  2012-07-11  2:16 [Bug c++/53921] New: [C++0x] ICE on lambda inside method of class template philip.pronin at gmail dot com
  2012-07-11 19:48 ` [Bug c++/53921] " daniel.kruegler at googlemail dot com
@ 2012-10-03 23:53 ` paolo.carlini at oracle dot com
  2012-10-04  0:06 ` paolo.carlini at oracle dot com
  2012-10-04  1:22 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-03 23:53 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at boxie dot eu

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-03 23:53:39 UTC ---
*** Bug 54798 has been marked as a duplicate of this bug. ***


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

* [Bug c++/53921] [C++0x] ICE on lambda inside method of class template
  2012-07-11  2:16 [Bug c++/53921] New: [C++0x] ICE on lambda inside method of class template philip.pronin at gmail dot com
  2012-07-11 19:48 ` [Bug c++/53921] " daniel.kruegler at googlemail dot com
  2012-10-03 23:53 ` paolo.carlini at oracle dot com
@ 2012-10-04  0:06 ` paolo.carlini at oracle dot com
  2012-10-04  1:22 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-04  0:06 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-10-04
             Blocks|                            |54367
     Ever Confirmed|0                           |1


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

* [Bug c++/53921] [C++0x] ICE on lambda inside method of class template
  2012-07-11  2:16 [Bug c++/53921] New: [C++0x] ICE on lambda inside method of class template philip.pronin at gmail dot com
                   ` (2 preceding siblings ...)
  2012-10-04  0:06 ` paolo.carlini at oracle dot com
@ 2012-10-04  1:22 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-04  1:22 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |paolo.carlini at oracle dot
                   |                            |com
         Resolution|                            |DUPLICATE

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-04 01:21:42 UTC ---
Dup. Again an INDIRECT_REF with null TREE_TYPE in lvalue_kind.

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


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

end of thread, other threads:[~2012-10-04  1:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-11  2:16 [Bug c++/53921] New: [C++0x] ICE on lambda inside method of class template philip.pronin at gmail dot com
2012-07-11 19:48 ` [Bug c++/53921] " daniel.kruegler at googlemail dot com
2012-10-03 23:53 ` paolo.carlini at oracle dot com
2012-10-04  0:06 ` paolo.carlini at oracle dot com
2012-10-04  1:22 ` 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).