Compiler bug in Visual C++ 2005

S

syntheticpp

Hello,

there is a bug in the compiler of Visual C++ 2005/14.00.50727.42
(also 13.10.3077).

This code compiles but must not compile:


#include <string>

namespace n {

using namespace std;

template<class T>
struct s{};
}

void f() {
string str;
}


When commenting out 'template<class T>'
it behaves correct.

Best regards
Peter
 
D

Doug Harrison [MVP]

Hello,

there is a bug in the compiler of Visual C++ 2005/14.00.50727.42
(also 13.10.3077).

This code compiles but must not compile:


#include <string>

namespace n {

using namespace std;

template<class T>
struct s{};
}

void f() {
string str;
}


When commenting out 'template<class T>'
it behaves correct.

I can confirm this. You should go here to see if it's been reported:

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

If it appears to be a new bug, go ahead and report it, and then post a link
to your report here so I (and others) can vote on it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top