473,503 Members | 756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiler bug in Visual C++ 2005

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

Nov 23 '05 #1
2 873
On 22 Nov 2005 04:24:40 -0800, sy*********@yahoo.com wrote:
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/produc...k/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.

--
Doug Harrison
Visual C++ MVP
Nov 23 '05 #2
The bug is already in the bug list:

http://lab.msdn.microsoft.com/produc...7-80ecb28b9d0a

peter

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2137
by: ik | last post by:
Hello All, Can somebody tell, which compiler conforms C++ Standard, regarding templates better on Win32 Platform ? I was finding problems with VC++6.0 with some template code, but the same works...
4
1906
by: Tao Wang | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am quite confused on a equation, as following: #include <iostream> int main(){ int i = 2;
1
1914
by: Mattias | last post by:
Hi I have The new Visual Studio 2005 Professional installed, I have created a vb project as windows application and receive a perculiar error when trying to open the Form designer. "Microsoft...
48
4881
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott...
21
1854
by: polychrom | last post by:
Is there some good and convenient C compiler (freeware), to compile C source code? Just compile ready source code, some handy tool for non programmers. thanks.
4
2142
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
0
4569
by: gmsieling | last post by:
We're getting compiler error CS0006, with increasing frequency. It says that a randomly named DLL was not found. This happens at random intervals when you try to run the application. We're using the...
4
1739
by: Break2 | last post by:
I am new to C++ and am currently using Visual Studio 2005 after having first tried Borland C++ Builder 6.0 and CodeGear C++ Builder 2007. The thing I like about Visual Studio 2005 is the 'step over'...
0
1496
by: Norman Diamond | last post by:
Does anyone know how to add the VC++2005 compiler for x64 to an existing installation of Visual Studio 2005 SP1? I opened Control Panel - Program Additions and Deletions - Microsoft Visual...
7
3943
by: Ginu | last post by:
Hi guys, I'm trying to run the compiler for Microsoft Visual Studio 2005 but receive this error when I try to run a simulation: "comp_msvc: Unable to execute compiler (Win32 error code: 2)...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.