473,789 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bad FP error with MS C++ compiler

// MS-Bug # 999,995 (5 left for 1 million bugs :-) :

const double d = DBL_MIN;

double v00 = 0.0;
bool f00 = v00 d;

double v01 = 0.1;
bool f01 = v01 d;

gives wrongly 'false' for f00... :-)

Jul 20 '08
12 1304
On Jul 20, 10:49*am, "Adem24" <ade...@adem24. org.invalidwrot e:
Further analysis shows that *it has nothing todo with the DBL_MIN
but the value ZERO !
Ie. the MS compiler treats the value 0 not correctly in FP ops.
Woah! Slow down. Millions (Billions? Trillions?) of lines of code
have been written using Microsoft compilers. Think about the
likelyhood that you are the first person to have tried using "0" in a
FP operation, and then consider the possibility that the problems lies
on your end, not the compilers.

--JC

Jul 21 '08 #11
On Jul 21, 2:51 pm, Victor Bazarov <v.Abaza...@com Acast.netwrote:
Gennaro Prota wrote:
[..]
:-) Out of curiosity, is there really a bug count for VC++, somewhere?
There must be. Since you can add to the collection (and check
if your addition is in the collection), there must be a way to
obtain the size of the collection, right?
But what does it mean? Anyone who's worked in support at one
time or another knows that 90% of the complaints are user error
(like the one that started this thread). The fact that VC++ is
the most widely used compiler by beginners probably means that
it will get the most "bug reports": for some beginners (often
the most stupid), the problem is always the compiler, and not
their stupidity.

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jul 22 '08 #12
James Kanze wrote:
On Jul 21, 2:51 pm, Victor Bazarov <v.Abaza...@com Acast.netwrote:
>Gennaro Prota wrote:
>>[..]
:-) Out of curiosity, is there really a bug count for VC++, somewhere?
>There must be. Since you can add to the collection (and check
if your addition is in the collection), there must be a way to
obtain the size of the collection, right?

But what does it mean? Anyone who's worked in support at one
time or another knows that 90% of the complaints are user error
(like the one that started this thread). The fact that VC++ is
the most widely used compiler by beginners probably means that
it will get the most "bug reports": for some beginners (often
the most stupid), the problem is always the compiler, and not
their stupidity.
Any product, especially as complex as a C++ compiler, contains errors
and misbehaviours, most of which are unintentional. *If* the product
manufacturer is interested in improving the product or at least their
image, they will be collecting the information on what seems to be wrong
with their product. Such information is often put in the form of a list
(of so called "bugs"). The list is finite, hence has a size. Some
manufacturers even make such lists public, many don't. Even if the list
is not public, it tends to have a size. That's what it means.

The suggestions or complaints are always verified against the product
specification, against common sense, product development schedules, etc.
If the suggestion is due to user error, it most likely will not be put
on the list of suggestions (although if it's an indication of a missing
feature or a possible work flow improvement, it might, indirectly). So,
the list of bugs most likely does not contain "bug reports" created due
to somebody's stupidity.

When I say "you can add to the collection" I don't mean "you can send an
e-mail about your problem". I mean you can cause the collection to grow
if your report is about a real defect in the product or contains a
genuine improvement suggestion.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 22 '08 #13

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

Similar topics

0
3687
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob , /webapps/sue) and i have added the folders bob, sue in my server.xml(in the context path). When i am trying to run jsp files from my browser, it works fine. But, the following jsp files reports some exceptions which is quite hard to understand. Here is...
6
8626
by: paul calvert | last post by:
I hope somewhere here has encountered and solved a similar problem in the past. 1) on a new Win2000 PC: installed Visual C++ 6.0 download & install single file Service Pack 5.0 2) try to build my gui and dll projects, whose project, workspace, source files all resided on network drive mapped to H. The H mapping,
2
17573
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT compiler as the page is requested by the browser. The result is that the "compiler failed with error code 2000". I have tested the same code on another workstation with VS.NET and it works fine EVERY time. I'm convinced it's not the code and I...
30
2962
by: Neil Zanella | last post by:
Hello, Allow me to share my frustrations with GNU g++. This is the second time something similar happens to me: I can't find anything wrong with my C++ program and yet I get segfaults, and eventually, here is what happens. Anyone ever experience anything similar. This or similar untrackable problems happen to me whenever I write a large class... anyone have had similar experiences??? make
2
5840
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to create a dll, using the cl compiler I was getting many unresolved external errors, Example 1 below (8 in total, 7 to do with the registry function calls and 1 from wsprintfA call) as I hadn't included the AdvAPI32.lib file. So I created a LINK...
0
2402
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are closer to the point at which the
1
13253
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem,
6
2730
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep facing the same problem with many of them: I keep getting errors such as: ....\WinUser.h(8028): fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)
1
3780
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a linux box using rsh it gives me the errors below Microsoft (R) Development Environment Version 7.10.3077. Copyright (C) Microsoft Corp 1984-2001. All rights reserved. ------ Build started: Project: SigComp, Configuration: Release Win32 ------...
0
2068
by: silviu | last post by:
Hello I'm trying to install Microsoft SQL 2005 Server Express Edition but I'm getting the following error: SQL Server Setup unexpectedly failed... Then it says something about a log file. Here's the contents of that log: Microsoft SQL Server 2005 Setup beginning at Thu Nov 22 22:30:08 2007 Process ID : 3856 e:\6f695192a2be55cedd30e3868397bfd2\setup.exe Version: 2005.90.1399.0 Running: LoadResourcesAction at: 2007/10/22 22:30:8...
0
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10412
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7529
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5422
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4093
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 we have to send another system
2
3703
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.