This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34054] [4.3 regression] ICE with parameter pack in return type
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2007 18:27:40 -0000
- Subject: [Bug c++/34054] [4.3 regression] ICE with parameter pack in return type
- References: <bug-34054-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2007-11-13 18:27 -------
Subject: Bug 34054
Author: jakub
Date: Tue Nov 13 18:27:09 2007
New Revision: 130152
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130152
Log:
PR c++/34054
PR c++/34056
PR c++/34057
PR c++/34058
PR c++/34060
* pt.c (find_parameter_packs_r): If ppd->set_packs_to_error,
set to error_mark_node the outermost POINTER_TYPE to the pack if
it is seen in a POINTER_TYPE.
(push_template_decl_real): If check_for_bare_parameter_packs
fails for function return type, set the return type to
integer_type_node. If check_for_bare_parameter_packs failed
for non-function, return error_mark_node.
* g++.dg/parse/crash36.C: Add another dg-error.
* g++.dg/cpp0x/pr34054.C: New test.
* g++.dg/cpp0x/pr34056.C: New test.
* g++.dg/cpp0x/pr34057.C: New test.
* g++.dg/cpp0x/pr34058.C: New test.
* g++.dg/cpp0x/pr34060.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr34054.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr34056.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr34057.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr34058.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr34060.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/parse/crash36.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34054