[Bug c++/68422] compile-time cost of sizeof... is quadratic

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 19 22:29:00 GMT 2015


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Nov 19 22:29:08 2015
New Revision: 230629

URL: https://gcc.gnu.org/viewcvs?rev=230629&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 for expression packs.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c


More information about the Gcc-bugs mailing list