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 c++/68422] compile-time cost of sizeof... is quadratic


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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Nov 25 19:56:12 2015
New Revision: 230900

URL: https://gcc.gnu.org/viewcvs?rev=230900&root=gcc&view=rev
Log:
        PR c++/68422

        * cp-tree.h (PACK_EXPANSION_SIZEOF_P): New.
        * parser.c (cp_parser_sizeof_pack): Set it.
        * pt.c  (tsubst_copy) [SIZEOF_EXPR]: Likewise.
        (tsubst_pack_expansion): Improve T... shortcut when set.

Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/cp-tree.h
    branches/gcc-5-branch/gcc/cp/parser.c
    branches/gcc-5-branch/gcc/cp/pt.c

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