c++/3614: failing overloading of template member functions in template classes

Wolfgang Bangerth bangerth@ticam.utexas.edu
Thu Nov 21 19:06:00 GMT 2002


The following reply was made to PR c++/3614; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/3614: failing overloading of template member functions in
 template classes
Date: Fri, 15 Nov 2002 20:10:17 -0600 (CST)

 May be related to PR 509.
 
 The problem also got worse. With 3.3 CVS from 2002-11-10, I get
 x.cc:15: error: redefinition of `int A<N>::f()'
 x.cc:12: error: `int A<N>::f()' previously declared here
 x.cc:15: error: no `int A<N>::f()' member function declared in class `A<N>'
 x.cc:15: error: expected 2 levels of template parms for `int A<N>::f()', got 1
 x.cc: In instantiation of `A<42>':
 x.cc:19:   instantiated from here
 x.cc:7: internal compiler error: in retrieve_specialization, at cp/pt.c:727
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
 
 Also, the circular error messages are not very helpful (redefinition -- 
 not existing -- but expecting something from it; no what?)
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                                www: http://www.ticam.utexas.edu/~bangerth
 
 



More information about the Gcc-prs mailing list