re PR c++/68422 (compile-time cost of sizeof... is quadratic)
authorJason Merrill <jason@redhat.com>
Thu, 19 Nov 2015 22:29:08 +0000 (17:29 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Nov 2015 22:29:08 +0000 (17:29 -0500)
commite3f8abd61ed3ecf6e3fabd2937b05c501dd981e1
tree15bc86c5ea964297c911b3096e4a921624dfebab
parent0766660bf94087754e89959cb4b1f27660f30afe
re PR c++/68422 (compile-time cost of sizeof... is quadratic)

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.

From-SVN: r230629
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c