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]

[Bug c++/7433] Invoking (template?) ctors as Class::Class is accepted


------- 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


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