public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52487] New: [4.6/4.7 Regression] [C++11] ICE at cp/semantics.c:5613 with lambda capturing reference to incomplete type by value
@ 2012-03-04 22:34 hevanen at googlemail dot com
  2012-03-05 10:14 ` [Bug c++/52487] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hevanen at googlemail dot com @ 2012-03-04 22:34 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52487
           Summary: [4.6/4.7 Regression] [C++11] ICE at
                    cp/semantics.c:5613 with lambda capturing reference to
                    incomplete type by value
    Classification: Unclassified
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hevanen@googlemail.com


The following code snippet causes an ICE:

struct A;
void foo(A& a)
{
  [=](){a;};
}

int main() {}


Confirmed with
gcc version 4.6.1 20110409 (prerelease) (Ubuntu 4.6.0-3~ppa1) and
GNU C++ (niXman build) version 4.7.0 20120203 (experimental) (i686-pc-mingw32)

The latter prints:
internal compiler error: in literal_type_p, at cp/semantics.c:5613

There is no ICE with this version:
GNU C++ (Ubuntu/Linaro 4.5.2-8ubuntu4) version 4.5.2 (x86_64-linux-gnu)
Instead, it prints the expected error message ("invalid use of incomplete type
‘struct A’").


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

end of thread, other threads:[~2012-03-23  0:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-04 22:34 [Bug c++/52487] New: [4.6/4.7 Regression] [C++11] ICE at cp/semantics.c:5613 with lambda capturing reference to incomplete type by value hevanen at googlemail dot com
2012-03-05 10:14 ` [Bug c++/52487] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2012-03-20 14:12 ` paolo.carlini at oracle dot com
2012-03-23  0:59 ` paolo at gcc dot gnu.org
2012-03-23  1:05 ` [Bug c++/52487] [4.6 " 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).