[Bug c++/34054] [4.3 regression] ICE with parameter pack in return type

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 13 18:28:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list