]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/typeck.c
re PR c++/37806 (CV-qualifiers on function typedef's are inconsistently accepted...
authorJason Merrill <jason@redhat.com>
Tue, 31 Mar 2009 18:31:17 +0000 (14:31 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 31 Mar 2009 18:31:17 +0000 (14:31 -0400)
commit0d9c089222329e55fb3d372e3c8029f5a18a080f
tree155b10aa3c254e87c8ef3b1be4137739cf355dfb
parenta3c497526740202a565d78c77d29f2b93c92f1ee
re PR c++/37806 (CV-qualifiers on function typedef's are inconsistently accepted depending on typedef scope)

        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.

From-SVN: r145365
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl.h
gcc/cp/error.c
gcc/cp/parser.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/template/qualttp20.C
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1_impl/type_traits
This page took 0.058794 seconds and 5 git commands to generate.