public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57543] decltype needs explicit 'this' pointer in member function declaration of template class with trailing return type Date: Sat, 31 May 2014 08:52:00 -0000 [thread overview] Message-ID: <bug-57543-4-vzXQUIIkQf@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-57543-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57543 --- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Sat May 31 08:51:20 2014 New Revision: 211102 URL: http://gcc.gnu.org/viewcvs?rev=211102&root=gcc&view=rev Log: /cp 2014-05-31 Paolo Carlini <paolo.carlini@oracle.com> DR 1227 PR c++/57543 * cp-tree.h (TYPE_HAS_LATE_RETURN_TYPE): Add. * pt.c (tsubst_function_type): Inject the this parameter; do the substitutions in the order mandated by the DR. (copy_default_args_to_explicit_spec): Copy TYPE_HAS_LATE_RETURN_TYPE. * decl.c (grokdeclarator): Maybe set TYPE_HAS_LATE_RETURN_TYPE. (static_fn_type): Copy it. * decl2.c (build_memfn_type, change_return_type, cp_reconstruct_complex_type): Likewise. * parser.c (cp_parser_lambda_declarator_opt): Likewise. * tree.c (strip_typedefs): Likewise. * typeck.c (merge_types): Likewise. /testsuite 2014-05-31 Paolo Carlini <paolo.carlini@oracle.com> DR 1227 PR c++/57543 * g++.dg/cpp0x/pr57543-1.C: New. * g++.dg/cpp0x/pr57543-2.C: Likewise. * g++.dg/cpp0x/pr57543-3.C: Likewise. * g++.dg/cpp0x/decltype59.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp0x/decltype59.C trunk/gcc/testsuite/g++.dg/cpp0x/pr57543-1.C trunk/gcc/testsuite/g++.dg/cpp0x/pr57543-2.C trunk/gcc/testsuite/g++.dg/cpp0x/pr57543-3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/decl2.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/tree.c trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2014-05-31 8:52 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-06-06 11:53 [Bug c++/57543] New: decltype needs eplicity " mitchnull+gcc at gmail dot com 2013-06-06 20:46 ` [Bug c++/57543] decltype needs explicit " paolo.carlini at oracle dot com 2013-06-08 14:51 ` daniel.kruegler at googlemail dot com 2013-12-01 13:40 ` d.frey at gmx dot de 2014-05-27 10:44 ` paolo.carlini at oracle dot com 2014-05-28 16:04 ` paolo.carlini at oracle dot com 2014-05-29 13:53 ` paolo.carlini at oracle dot com 2014-05-29 17:12 ` paolo.carlini at oracle dot com 2014-05-31 8:52 ` paolo.carlini at oracle dot com 2014-05-31 8:52 ` paolo at gcc dot gnu.org [this message] 2014-06-03 9:55 ` redi 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-57543-4-vzXQUIIkQf@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).