473,611 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual C++ 7.1 Internal Compiler Error

During the last weeks I've trying to port boost::python 1.23 to work
with Visual C++ 7.1. I had some headaches while doing so because VC++
7.1 supports Koenig lookup and previous ones doesn't support it (and
aparently boost::python 1.23 was not written with Koenig support in
mind).
While doing so I faced an ICF.. which I can reproduce with the code
that follows. Does anybode know if this is fixed somehow ?.
I'm not sure if the call to some_friend inside
bang_bang_icf_s hot_me_down is ok or not.. and thats not what I want to
find out right now. The ICF I'm getting is inside a piece of code that
is so much bigger. This is just a simplified example of what I think
is trigering the ICF.
Thanks.
namespace pindonguita
{
struct lookup_helper
{};

class A
{
public:
friend void some_friend(loo kup_helper)
{}
};

template <typename T>
void bang_bang_icf_s hot_me_down(loo kup_helper a_T)
{::some_friend( pindonguita::lo okup_helper()); }
}

int main()
{
pindonguita::A int_conv;
some_friend(pin donguita::looku p_helper());
pindonguita::ba ng_bang_icf_sho t_me_down<int>( pindonguita::lo okup_helper());
return 0;
}
Nov 17 '05 #1
2 858
Gabriel Becedillas wrote:
During the last weeks I've trying to port boost::python 1.23 to work
with Visual C++ 7.1. I had some headaches while doing so because VC++
7.1 supports Koenig lookup and previous ones doesn't support it (and
aparently boost::python 1.23 was not written with Koenig support in
mind).
While doing so I faced an ICF.. which I can reproduce with the code
that follows. Does anybode know if this is fixed somehow ?.
I'm not sure if the call to some_friend inside
bang_bang_icf_s hot_me_down is ok or not.. and thats not what I want to
find out right now. The ICF I'm getting is inside a piece of code that
is so much bigger. This is just a simplified example of what I think
is trigering the ICF.
Thanks.


I was able to confirm this ICE in VC7.1 and it appears to be fixed in
Whidbey (VC8). The code posted is in fact invalid and VC8 gives an
appropriate error instead of the ICE.

Would using boost::python 2 be an option? AFIAK that works perfectly well
with VC7.1.

-cd
Nov 17 '05 #2
"Carl Daniel [VC++ MVP]" <cp************ *************** **@mvps.org.nos pam> wrote in message news:<uf******* *******@TK2MSFT NGP09.phx.gbl>. ..

I was able to confirm this ICE in VC7.1 and it appears to be fixed in
Whidbey (VC8). The code posted is in fact invalid and VC8 gives an
appropriate error instead of the ICE.
Thank you very much for checking.
Would using boost::python 2 be an option? AFIAK that works perfectly well
with VC7.1.


The reason why we're using such and old boost::python version is that
we're using python 2.0.1 vm embedded in our application. Upgrading
that is a very critical process.
Thanks again for your response.
Nov 17 '05 #3

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

Similar topics

2
3091
by: Stephen Horne | last post by:
I started making up a Python extension module to wrap a C++ library of mine using Boost Python. Trouble is, the library has a number of classes each of which has a lot of methods. I seem to have hit an internal limit in the Visual C++ 7 compiler. The output I get is... """ ....found 2031 targets... ....updating 4 targets...
0
4992
by: Alex | last post by:
Hi, I have a problem with the VB.NET compiler: When I open my solution I recive the message : "Visual Basic .Net compiler is unable to recover from the following error : System Error &Hc0000005& (Visual Basic internal compiler error) Save your work and restart Visual Studio .Net."
5
7224
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler error) Save your work and restart Visual Studio .NET." has anyone seen this bug and can you confirm one way or the other whether or not it can corrupt your source files? (by 'corrupt' i mean: do anything to it that will cause it to fail to load and...
0
321
by: Runge Developer | last post by:
When compiling a VB.NET assembly we reguarly have the problem where it either hangs or produces the following error: ----- Visual Basic .NET compiler is unable to recover from the following error: System Error &Hc0000005& (Visual Basic internal compiler error) Save your work and restart Visual Studio .NET. ---- On the same codebase it will sometimes work and sometimes not. Very Bizarre.
19
3544
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours to find the _current_ reporting page... #include <vector> #include <iostream>
11
2419
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours to find the _current_ reporting page... // // Since I'm now using much time on reporting this compiler bug, please // do also fix the __LINE__ macro. //
1
1500
by: Gabriel Becedillas | last post by:
During the last weeks I've trying to port boost::python 1.23 to work with Visual C++ 7.1. I had some headaches while doing so because VC++ 7.1 supports Koenig lookup and previous ones doesn't support it (and aparently boost::python 1.23 was not written with Koenig support in mind). While doing so I faced an ICF.. which I can reproduce with the code that follows. Does anybode know if this is fixed somehow ?. I'm not sure if the call to...
4
3312
by: David Sworder | last post by:
Consider the following line of code (it's not important what it does): resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase); It turns out that this line is in error. The property 'DocItem' should be 'DocItems.' The problem is that instead of notifying me of where the problem has occurred, the compiler just crashes with an "internal error" (see bottom of this message). Now if I were to write: ...
2
1681
by: Sen | last post by:
Hi All, I am using (Visual C++ 1.52 IDE )for my MFC Application Project. I am working on an existing code base where the no of lines is around 100,000, spread across different header and cpp files. when i was trying to add a new function declaration for an existing class in a header file and function implementation in the .cpp file i am getting an error as given below : fatal error C1001: internal compiler error (compiler file...
6
3087
by: Dusan Jan | last post by:
I get the following message when compiling or by background compile: Visual Basic .NET compiler is unable to recover from the following error: System Error &Hc0000005& (Visual Basic internal compiler error) Save your work and restart Visual Studio .NET. I have browsed for this issue and there are several reports on this. One claim that there is a kb article on this that asks to call MS for a patch. But no link to that article works.
0
8596
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
8240
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8411
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7038
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6072
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
5527
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
4042
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...
1
2546
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
0
1411
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.