public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52748] [C++11] N3276 changes to decltype
Date: Sun, 17 Mar 2013 02:38:00 -0000	[thread overview]
Message-ID: <bug-52748-4-TNpn7OFYns@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52748-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-17 02:37:21 UTC ---
Author: jason
Date: Sun Mar 17 02:37:09 2013
New Revision: 196736

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196736
Log:
    N3276
    PR c++/52748
    * cp-tree.h (tsubst_flags): Add tf_decltype.
    * call.c (build_cxx_call): Don't build a temporary if it's set.
    (build_over_call): Make sure it's only passed to build_cxx_call.
    * parser.c (cp_parser_primary_expression): Add decltype_p parm.
    (cp_parser_unary_expression): Likewise.
    (cp_parser_cast_expression): Likewise.
    (cp_parser_binary_expression): Likewise.
    (cp_parser_assignment_expression): Likewise.
    (cp_parser_postfix_expression): Likewise.  Pass tf_decltype.
    (cp_parser_explicit_instantiation): Add decltype_p.  Force a
    temporary for a call on the LHS of a comma.
    (cp_parser_decltype): Pass true to decltype_p parms.
    * pt.c (tsubst) [DECLTYPE_TYPE]: Pass tf_decltype.
    (tsubst_copy_and_build): Pass tf_decltype down only for
    CALL_EXPR and the RHS of COMPOUND_EXPR.
    * tree.c (build_cplus_new): Call complete_type_or_maybe_complain.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/decltype-call1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/tree.c


  parent reply	other threads:[~2013-03-17  2:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28  5:33 [Bug c++/52748] New: " zeratul976 at hotmail dot com
2012-08-09  8:09 ` [Bug c++/52748] " lundberj at gmail dot com
2012-08-10  9:39 ` redi at gcc dot gnu.org
2012-11-07  4:31 ` zeratul976 at hotmail dot com
2012-11-07  4:32 ` zeratul976 at hotmail dot com
2013-02-18 12:47 ` redi at gcc dot gnu.org
2013-02-26 20:21 ` jason at gcc dot gnu.org
2013-03-17  2:38 ` jason at gcc dot gnu.org [this message]
2013-03-23 10:52 ` paolo.carlini at oracle dot com
2013-03-26 14:31 ` jason at gcc dot gnu.org
2013-03-28 13:11 ` mimomorin at gmail dot com
2013-03-28 13:29 ` [Bug c++/52748] [4.9 Regression][C++11] " paolo.carlini at oracle dot com
2013-03-28 13:36 ` jason at gcc dot gnu.org
2013-03-28 20:03 ` jason at gcc dot gnu.org
2013-03-29  0:41 ` mimomorin at gmail dot com
2013-04-10  9:27 ` zeratul976 at hotmail dot com
2013-04-11 21:46 ` jason at gcc dot gnu.org
2013-04-12  7:23 ` zeratul976 at hotmail dot com
2013-04-16 21:24 ` jason at gcc dot gnu.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=bug-52748-4-TNpn7OFYns@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: link
Be 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).