Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2004

Tip: Looking for answers? Try searching our database.

Visual C++ 7.1 Internal Compiler Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gabriel Becedillas - 01 Jul 2004 18:39 GMT
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_shot_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(lookup_helper)
              {}
      };

      template <typename T>
      void bang_bang_icf_shot_me_down(lookup_helper a_T)
      {::some_friend(pindonguita::lookup_helper());}
}

int main()
{
      pindonguita::A int_conv;
      some_friend(pindonguita::lookup_helper());
      pindonguita::bang_bang_icf_shot_me_down<int>(pindonguita::lookup_helper());
      return 0;
}
Carl Daniel [VC++ MVP] - 01 Jul 2004 18:44 GMT
> 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++
[quoted text clipped - 9 lines]
> 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
Gabriel Becedillas - 01 Jul 2004 22:49 GMT
> 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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.