public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hevanen at googlemail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [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 Date: Sun, 04 Mar 2012 22:34:00 -0000 [thread overview] Message-ID: <bug-52487-4@http.gcc.gnu.org/bugzilla/> (raw) 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’").
next reply other threads:[~2012-03-04 22:34 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-03-04 22:34 hevanen at googlemail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-52487-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).