Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

one more function template bug in VC 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fender Mussel - 18 Mar 2005 10:12 GMT
Please could someone verify if this bug is fixed in VS 2005? (the code
should compile, but it doesn't in VC 2003)

Thanks, Stefan

template <typename DerivedT>
struct base
{
    template <typename T>
    DerivedT f (T const&) const
    {
        return DerivedT();
    }
};

struct derived : public base<derived>
{
};

derived d;

// error C2027: use of undefined type 'derived'
David Lowndes - 18 Mar 2005 11:00 GMT
>Please could someone verify if this bug is fixed in VS 2005? (the code
>should compile, but it doesn't in VC 2003)

It's still the same with the VS2005 B1 compiler.

It compiles OK with the Comeau online compiler, so I recommend that
you submit a bug report on this at:

http://lab.msdn.microsoft.com/productfeedback/default.aspx

When you've done so, please reply here with the link to your report
and I'll add a vote to it.

Dave
Fender Mussel - 18 Mar 2005 11:49 GMT
> It's still the same with the VS2005 B1 compiler.
>
[quoted text clipped - 5 lines]
> When you've done so, please reply here with the link to your report
> and I'll add a vote to it.

This has already been reported and should be fixed in Beta 2, see bug
report FDBK18114.

Stefan

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.