Compiler bug in Visual C++ 2005

  • Thread starter Thread starter syntheticpp
  • Start date Start date
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
 
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.
 
Back
Top