Commit c4471bb2 by Dodji Seketeli Committed by Dodji Seketeli

Revert PR c++/42697

     The commit is reverted as this was not a regression.
     It's rather going to be stagged for 4.6.

From-SVN: r155976
parent 4548cb4b
2010-01-17 Dodji Seketeli <dodji@redhat.com> 2010-01-17 Dodji Seketeli <dodji@redhat.com>
PR c++/42697 PR c++/42697
*pt.c (tsubst_decl): Revert commit for PR c++/42697.
2010-01-17 Dodji Seketeli <dodji@redhat.com>
PR c++/42697
*pt.c (tsubst_decl): Get the arguments of a specialization from *pt.c (tsubst_decl): Get the arguments of a specialization from
the specialization template, not from the most general template. the specialization template, not from the most general template.
......
...@@ -8825,8 +8825,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain) ...@@ -8825,8 +8825,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain)
specialize R. */ specialize R. */
gen_tmpl = most_general_template (DECL_TI_TEMPLATE (t)); gen_tmpl = most_general_template (DECL_TI_TEMPLATE (t));
argvec = tsubst_template_args (DECL_TI_ARGS argvec = tsubst_template_args (DECL_TI_ARGS
(DECL_TEMPLATE_RESULT (DECL_TEMPLATE_RESULT (gen_tmpl)),
(DECL_TI_TEMPLATE (t))),
args, complain, in_decl); args, complain, in_decl);
/* Check to see if we already have this specialization. */ /* Check to see if we already have this specialization. */
......
2010-01-17 Dodji Seketeli <dodji@redhat.com> 2010-01-17 Dodji Seketeli <dodji@redhat.com>
PR c++/42697 PR c++/42697
* g++.dg/template/crash94.C: New test. * g++.dg/template/crash94.C: Reverted.
2010-01-17 Dodji Seketeli <dodji@redhat.com>
PR c++/42697
2010-01-17 Jie Zhang <jie.zhang@analog.com> 2010-01-17 Jie Zhang <jie.zhang@analog.com>
......
// Origin: PR c++/42697
// { dg-do compile }
template<class Value_t>
class fparser
{
template<bool Option>
void eval2(Value_t r[2]);
public:
void evaltest();
};
template<>
template<bool Option>
void fparser<int>::eval2(int r[2])
{
struct ObjType {};
}
template<class Value_t>
void fparser<Value_t>::evaltest
()
{
eval2<false>(0);
}
template class fparser<int>;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment