This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15671] definition fails to find templated constructor declaration
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2004 14:44:59 -0000
- Subject: [Bug c++/15671] definition fails to find templated constructor declaration
- References: <20040527052119.15671.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-01 14:44 -------
You have these templated constructors in your class declaration:
template<typename R>
Powerset(Range<R> r, Alloc<E> alloc = Alloc<E>());
template<typename R>
Powerset(Row<Range<R> > r, Alloc<E> alloc = Alloc<E>());
and you try to define this one:
template<typename E, template<typename> class Alloc>
template<typename R>
inline
Powerset<E, Alloc>::
Powerset(Range<R> r,
const Alloc<E>& a)
Obviously, it must be the first declaration, since the first argument
is Range<R>, not Row<Range<R> >, but in the declaration the second
argument is a value, while in the definition it is a reference. So
the compiler seems right to complain, no?
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15671