]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/34051 (ICE in dependent_type_p with variadic templates)
authorDouglas Gregor <doug.gregor@gmail.com>
Tue, 15 Jan 2008 18:08:00 +0000 (18:08 +0000)
committerDoug Gregor <dgregor@gcc.gnu.org>
Tue, 15 Jan 2008 18:08:00 +0000 (18:08 +0000)
commit4439d02f0f5881b186b7d3430a9504310e227e30
tree86bf7020da1cd67cb456d3a5b266ad9a0edd947c
parenta022041e4ca05c32d7d17a26ce6f0716b4ba642f
re PR c++/34051 (ICE in dependent_type_p with variadic templates)

2008-01-15  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/34051
PR c++/34055
PR c++/34102
PR c++/34103
* typeck.c (check_return_expr): If there are bare parameter packs
in the return value, set it to error_mark_node.
* tree.c (cp_walk_subtrees): Walk USING_DECL nodes.
* pt.c (find_parameter_packs_r): Look at the type of
IDENTIFIER_NODEs (e.g., for user-defined conversions).
(check_for_bare_parameter_packs): Flip the result: now returns
TRUE when there were bare parameter packs, FALSE otherwise.
(push_template_decl_real): Deal with flipped result of
check_for_bare_parameter_packs.
* semantics.c (finish_cond): If there are bare parameter packs in
the conditional, set it to error_mark_node.
(finish_expr_stmt): If there are bare parameter packs in the
expression, set it to error_mark_node.
(finish_for_expr): Ditto.
(finish_switch_cond): If there are bare parameter packs in
the conditional, set it to error_mark_node.
(finish_mem_initializers): If there are bare parameter packs in
the member initializer, set it to error_mark_node.
(finish_member_declaration): Check the attributes of the
declaration for bare parameter packs, and remove the attributes if
any have bare parameter packs.
* parser.c (cp_parser_using_declaration): Check the using
declaration for bare parameter packs.
(cp_parser_base_clause): If there are bare parameter packs in a
base specifier, don't add it to the chain.

2008-01-15  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/34051
PR c++/34055
PR c++/34102
PR c++/34103
* g++.dg/cpp0x/vt-34051-2.C: New.
* g++.dg/cpp0x/vt-34102.C: New.
* g++.dg/cpp0x/vt-34051.C: New.
* g++.dg/cpp0x/vt-34055.C: New.
* g++.dg/cpp0x/vt-34103.C: New.

From-SVN: r131547
12 files changed:
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/vt-34051-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/vt-34051.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/vt-34055.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/vt-34102.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/vt-34103.C [new file with mode: 0644]