public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jason at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/40689] [C++0x]: error with initializer list in N2672 Date: Mon, 13 Jul 2009 06:07:00 -0000 [thread overview] Message-ID: <20090713060648.29374.qmail@sourceware.org> (raw) In-Reply-To: <bug-40689-17925@http.gcc.gnu.org/bugzilla/> ------- Comment #7 from jason at gcc dot gnu dot org 2009-07-13 06:06 ------- Subject: Bug 40689 Author: jason Date: Mon Jul 13 06:06:27 2009 New Revision: 149543 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149543 Log: PR c++/36628 * tree.c (rvalue): Use lvalue_or_rvalue_with_address_p. PR c++/37206 * cp-tree.h (enum cp_lvalue_kind_flags): Add clk_rvalueref. * tree.c (lvalue_p_1): Return it. Remove treat_class_rvalues_as_lvalues parm. (real_lvalue_p): Disallow pseudo-lvalues here. (lvalue_or_rvalue_with_address_p): New fn. * call.c (initialize_reference): Use it instead of real_lvalue_p. PR c++/40689 * init.c (build_new_1): Handle initializer list as array initializer. (build_vec_init): Likewise. * typeck.c (cp_build_modify_expr): Likewise. * typeck2.c (process_init_constructor_array): Error rather than abort if too many initializers. Added: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype17.C - copied unchanged from r149536, trunk/gcc/testsuite/g++.dg/cpp0x/decltype17.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist20.C - copied unchanged from r149534, trunk/gcc/testsuite/g++.dg/cpp0x/initlist20.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist21.C - copied unchanged from r149534, trunk/gcc/testsuite/g++.dg/cpp0x/initlist21.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/rv10.C - copied unchanged from r149534, trunk/gcc/testsuite/g++.dg/cpp0x/rv10.C Modified: branches/gcc-4_4-branch/gcc/cp/ChangeLog branches/gcc-4_4-branch/gcc/cp/ChangeLog-2007 (props changed) branches/gcc-4_4-branch/gcc/cp/ChangeLog-2008 (props changed) branches/gcc-4_4-branch/gcc/cp/call.c branches/gcc-4_4-branch/gcc/cp/cp-tree.h branches/gcc-4_4-branch/gcc/cp/init.c branches/gcc-4_4-branch/gcc/cp/tree.c branches/gcc-4_4-branch/gcc/cp/typeck.c branches/gcc-4_4-branch/gcc/cp/typeck2.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog branches/gcc-4_4-branch/gcc/testsuite/ChangeLog-2008 (props changed) branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ (props changed) branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C (props changed) branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr36227.c (props changed) branches/gcc-4_4-branch/gcc/testsuite/gcc.target/x86_64/abi/callabi/ (props changed) Propchange: branches/gcc-4_4-branch/gcc/cp/ChangeLog-2007 ('svn:mergeinfo' modified) Propchange: branches/gcc-4_4-branch/gcc/cp/ChangeLog-2008 ('svn:mergeinfo' modified) Propchange: branches/gcc-4_4-branch/gcc/testsuite/ChangeLog-2008 ('svn:mergeinfo' modified) Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ ('svn:mergeinfo' modified) Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C ('svn:mergeinfo' modified) Propchange: branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr36227.c ('svn:mergeinfo' modified) Propchange: branches/gcc-4_4-branch/gcc/testsuite/gcc.target/x86_64/abi/callabi/ ('svn:mergeinfo' modified) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40689
next prev parent reply other threads:[~2009-07-13 6:07 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-08 20:29 [Bug c++/40689] New: " bernhard dot merkle at googlemail dot com 2009-07-08 20:30 ` [Bug c++/40689] " bernhard dot merkle at googlemail dot com 2009-07-08 20:38 ` rguenth at gcc dot gnu dot org 2009-07-08 20:56 ` bernhard dot merkle at googlemail dot com 2009-07-08 21:05 ` rguenth at gcc dot gnu dot org 2009-07-09 0:36 ` paolo dot carlini at oracle dot com 2009-07-12 19:19 ` jason at gcc dot gnu dot org 2009-07-13 6:07 ` jason at gcc dot gnu dot org [this message] 2009-07-14 5:18 ` jason at gcc dot gnu dot org
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=20090713060648.29374.qmail@sourceware.org \ --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).