public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "lunow at math dot hu-berlin.de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53488] Incorrect code generated when capturing a constant by reference in a lambda Date: Sun, 24 Jun 2012 14:30:00 -0000 [thread overview] Message-ID: <bug-53488-4-XWApzTBvdF@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-53488-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53488 --- Comment #5 from Daniel Lunow <lunow at math dot hu-berlin.de> 2012-06-24 14:30:19 UTC --- Created attachment 27694 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27694 integral constant-expression not an integral constant-expression This test case should compile, but it does not. Its not the same as the constant not beeing captured, but I can imagine it is very close problem. C:\dev\projects\compiler test>g++ -std=c++11 gcc_test6.cpp gcc_test6.cpp: In instantiation of 'foo() [with T = void]::<lambda()>': gcc_test6.cpp:8:4: required from 'struct foo() [with T = void]::<lambda()>' gcc_test6.cpp:8:3: required from 'void foo() [with T = void]' gcc_test6.cpp:13:13: required from here gcc_test6.cpp:8:15: error: size of array is not an integral constant-expression
next prev parent reply other threads:[~2012-06-24 14:30 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-05-25 16:07 [Bug c++/53488] New: " jpalecek at web dot de 2012-05-25 16:18 ` [Bug c++/53488] " redi at gcc dot gnu.org 2012-05-25 17:55 ` jpalecek at web dot de 2012-05-25 20:11 ` daniel.kruegler at googlemail dot com 2012-06-24 14:21 ` lunow at math dot hu-berlin.de 2012-06-24 14:30 ` lunow at math dot hu-berlin.de [this message] 2012-06-24 20:12 ` jpalecek at web dot de 2012-06-24 20:23 ` jpalecek at web dot de 2012-06-25 0:32 ` lunow at math dot hu-berlin.de 2012-06-25 14:28 ` ai.azuma at gmail dot com 2012-08-19 14:04 ` jpalecek at web dot de 2012-08-19 14:11 ` jpalecek at web dot de
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-53488-4-XWApzTBvdF@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).