This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23826] invalid use of constructor as a template
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2005 23:39:26 -0000
- Subject: [Bug c++/23826] invalid use of constructor as a template
- References: <20050911233526.23826.harold@alum.mit.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-11 23:39 -------
(In reply to comment #0)
> The following code compiled in g++ 3.3.4, but does not compile in the latest 4.0.x
> Seems like a regression testing oversight.
Nope, see below.
> The error is
> error: invalid use of constructor as a template
> note: use ?db_reference<T, ID_TYPE>::db_reference? instead of ?db_reference<T,
> ID_TYPE>::db_reference<T, ID_TYPE>? to name the constructor in a qualified name
The error even says how to fix your code. In fact the note part was added so people don't confuse
what the error message meant.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23826