[Bug c++/42634] ICE with -g -O2 -std=c++0x in copy_fn_p, at cp/decl.c:9973
------- Comment #6 from dodji at gcc dot gnu dot org 2010-01-13 20:06 -------
Subject: Bug 42634
Author: dodji
Date: Wed Jan 13 20:06:26 2010
New Revision: 155868
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155868
Log:
Fix PR c++/42634
gcc/cp/ChangeLog:
PR c++/42634
* error.c (dump_template_parms): Use innermost template
arguments before calling count_non_default_template_args.
(count_non_default_template_args): We are being called with
template innermost arguments now. There is no need to ensure
that again.
gcc/testsuite/ChangeLog:
PR c++/42634
* g++.dg/template/error45.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/error45.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/error.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42634
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: