This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template specialization bug (3.2)
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: "Neal D. Becker" <nbecker at hns dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Nov 2002 13:08:11 -0600 (CST)
- Subject: Re: template specialization bug (3.2)
Your code is equivalent to
------------------------
template <typename T> class X {};
template<int shift, typename T> void foo (T x) { error; }
template<int shift, typename T> void foo (X<T> x) {}
int main () {
foo<1> (X<int>());
}
------------------------
I'd say, it should compile, and it does if one drops the first template
argument of foo and the <1> template arg indication when calling it.
Please submit a bug report with this piece of code.
Regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth