This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/7433] Invoking (template?) ctors as Class::Class is accepted
- 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: 28 Dec 2003 04:25:38 -0000
- Subject: [Bug c++/7433] Invoking (template?) ctors as Class::Class is accepted
- References: <20020729062600.7433.akim@epita.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-28 04:25 -------
Here is a self-contained example:
template <typename x> struct list
{
list();
list(int, int);
int begin();
int end();
};
typedef list<int> list_t;
int
main ()
{
list_t l;
list_t l2 = list_t::list (l.begin (), l.end ());
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7433