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++/37806] CV-qualifiers on function typedef's are inconsistently accepted depending on typedef scope Date: Tue, 31 Mar 2009 18:32:00 -0000 [thread overview] Message-ID: <20090331183147.17588.qmail@sourceware.org> (raw) In-Reply-To: <bug-37806-16821@http.gcc.gnu.org/bugzilla/> ------- Comment #5 from jason at gcc dot gnu dot org 2009-03-31 18:31 ------- Subject: Bug 37806 Author: jason Date: Tue Mar 31 18:31:17 2009 New Revision: 145365 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145365 Log: PR c++/37806 * typeck.c (cp_apply_type_quals_to_decl): Don't apply any quals to a typedef. * tree.c (cp_build_qualified_type_real): Don't apply restrict to a function type. * decl.h (enum decl_context): Add TEMPLATE_TYPE_ARG. * decl.c (groktypename): Add is_template_arg parameter. (grokdeclarator): Allow function cv-quals on a template type arg. * parser.c (cp_parser_new_type_id, cp_parser_type_id): Add is_template_arg argument in calls to groktypename. * cp-tree.h: Adjust prototype. * error.c (dump_type_prefix, dump_type_suffix): Fix plain FUNCTION_TYPE printing. PR libstdc++/39310 * include/tr1_impl/type_traits (is_function): Add partial specializations with function cv-quals. (__is_function_helper): Remove. (is_member_pointer): Don't define in terms of is_member_*_pointer. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/decl.h trunk/gcc/cp/error.c trunk/gcc/cp/parser.c trunk/gcc/cp/tree.c trunk/gcc/cp/typeck.c trunk/gcc/testsuite/g++.dg/template/qualttp20.C trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/tr1_impl/type_traits -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37806
next prev parent reply other threads:[~2009-03-31 18:32 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-10-11 19:51 [Bug c++/37806] New: " andrew at nelless dot net 2008-10-11 20:00 ` [Bug c++/37806] " rguenth at gcc dot gnu dot org 2008-10-13 23:01 ` pinskia at gcc dot gnu dot org 2009-03-02 1:21 ` jason at gcc dot gnu dot org 2009-03-02 1:22 ` jason at gcc dot gnu dot org 2009-03-31 18:32 ` jason at gcc dot gnu dot org [this message] 2009-03-31 18:38 ` jason at gcc dot gnu dot org 2009-04-07 4:38 ` jason at gcc dot gnu dot org 2009-04-07 4:39 ` jason at gcc dot gnu dot org 2010-01-08 3:45 ` pinskia 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=20090331183147.17588.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).