This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/80251] Is the is_aggregate meta function missing?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80251

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 31 06:40:39 2017
New Revision: 246609

URL: https://gcc.gnu.org/viewcvs?rev=246609&root=gcc&view=rev
Log:
        PR libstdc++/80251
c-family/
        * c-common.h (enum rid): Add RID_IS_AGGREGATE.
        * c-common.c (c_common_reswords): Add __is_aggregate trait.
cp/
        * cp-tree.h (enum cp_trait_kind): Add CPTK_IS_AGGREGATE.
        * cxx-pretty-print.c (pp_cxx_trait_expression): Handle
        CPTK_IS_AGGREGATE.
        * semantics.c (trait_expr_value): Handle CPTK_IS_AGGREGATE.
        Remove extraneous parens.
        (finish_trait_expr): Handle CPTK_IS_AGGREGATE.
        * parser.c (cp_parser_primary_expression): Handle RID_IS_AGGREGATE.
        (cp_parser_trait_expr): Likewise.
testsuite/
        * g++.dg/ext/is_aggregate.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/is_aggregate.C
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]