aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-06-16 18:05:46 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-06-16 18:05:46 -0400
commit89a27d8fa26ed41071db524875a00086fac9002a (patch)
treeaad1b7dccedea2b838479781129d6e761620cafc /gcc/cp/error.c
parent361b51c08030935d78a64228551afaa65106b773 (diff)
downloadgcc-89a27d8fa26ed41071db524875a00086fac9002a.zip
gcc-89a27d8fa26ed41071db524875a00086fac9002a.tar.gz
gcc-89a27d8fa26ed41071db524875a00086fac9002a.tar.bz2
re PR c++/49420 ([C++0x] compiler segfault using result_of)
PR c++/49420 * error.c (dump_template_argument): Don't try to omit default template args from an argument pack. From-SVN: r175117
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 22470dc..7c90ec4 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -147,7 +147,9 @@ static void
dump_template_argument (tree arg, int flags)
{
if (ARGUMENT_PACK_P (arg))
- dump_template_argument_list (ARGUMENT_PACK_ARGS (arg), flags);
+ dump_template_argument_list (ARGUMENT_PACK_ARGS (arg),
+ /* No default args in argument packs. */
+ flags|TFF_NO_OMIT_DEFAULT_TEMPLATE_ARGUMENTS);
else if (TYPE_P (arg) || TREE_CODE (arg) == TEMPLATE_DECL)
dump_type (arg, flags & ~TFF_CLASS_KEY_OR_ENUM);
else