This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]