public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas
@ 2012-08-14 11:52 linesprower at gmail dot com
  2012-08-14 12:00 ` [Bug c++/54250] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: linesprower at gmail dot com @ 2012-08-14 11:52 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54250
           Summary: Segmentation fault when decltype of a struct field is
                    used in nested lambdas
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: linesprower@gmail.com


// this code causes segmentation fault during compilation
// compiled with: g++ -std=c++0x
// compiler version: 4.6.2
// note: uncommenting 'this' fixes the problem

struct T
{
    int a;
    int foo()
    {
        return [&]()->int {
            return [&](decltype(/*this->*/a) _)->int {
                return 1;
            }(a);
        }();
    }
};

int main()
{
    return 0;
}


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

end of thread, other threads:[~2014-03-18 17:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-14 11:52 [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas linesprower at gmail dot com
2012-08-14 12:00 ` [Bug c++/54250] " redi at gcc dot gnu.org
2012-08-15 21:15 ` daniel.kruegler at googlemail dot com
2014-03-18 16:42 ` paolo.carlini at oracle dot com
2014-03-18 17:11 ` paolo at gcc dot gnu.org
2014-03-18 17:11 ` 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).