[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/42634] ICE with -g -O2 -std=c++0x in copy_fn_p, at cp/decl.c:9973




------- Comment #12 from dodji at gcc dot gnu dot org  2010-01-18 21:19 -------
Subject: Bug 42634

Author: dodji
Date: Mon Jan 18 21:18:49 2010
New Revision: 156022

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156022
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: