#using <mscorlib.dll >
#include <vcclr.h>
public __gc class A {};
struct B {
void f(A* e);
gcroot<A*> e;
};
int main() {
B().f(new A()); // note that B b; b.f(new A)); works fine
return 0;
} 10 1381
Oh, well.
Either everybody knows or nobody cares...
"Vladimir Kouznetsov" <vl************ *****@ngrain.co m> wrote in message
news:eG******** ******@TK2MSFTN GP09.phx.gbl... #using <mscorlib.dll > #include <vcclr.h> public __gc class A {}; struct B { void f(A* e); gcroot<A*> e; }; int main() { B().f(new A()); // note that B b; b.f(new A)); works fine return 0; }
>Oh, well. Either everybody knows or nobody cares...
FWIW, the ICE happens with the alpha release Whidbey compiler too -
I'll try to report it to MS.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
>#using <mscorlib.dll > #include <vcclr.h> public __gc class A {}; struct B { void f(A* e); gcroot<A*> e; }; int main() { B().f(new A()); // note that B b; b.f(new A)); works fine return 0; }
While it's not correct that the compiler gives an ICE, is the code
example valid?
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Why would you think it's not?
thanks,
v
"David Lowndes" <da****@mvps.or g> wrote in message
news:vk******** *************** *********@4ax.c om... #using <mscorlib.dll > #include <vcclr.h> public __gc class A {}; struct B { void f(A* e); gcroot<A*> e; }; int main() { B().f(new A()); // note that B b; b.f(new A)); works fine return 0; }
While it's not correct that the compiler gives an ICE, is the code example valid?
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
>Why would you think it's not?
Because I don't use managed C++ myself and I'm really not sure what's
right, wrong, or indifferent with it!
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Thank you for your feedback. Sadly I expected someone from MS reacted to
that. Next time I most probably won't report.
TTBOMK this code is legal managed C++.
thanks,
v
"David Lowndes" <da****@mvps.or g> wrote in message
news:5v******** *************** *********@4ax.c om... Why would you think it's not?
Because I don't use managed C++ myself and I'm really not sure what's right, wrong, or indifferent with it!
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
>Thank you for your feedback. Sadly I expected someone from MS reacted to that. Next time I most probably won't report. TTBOMK this code is legal managed C++.
I'm sorry that you seem disappointed that I replied. I replied because
no-one else had, and I was only being honest in admitting my lack of
knowledge in managed C++ usage.
FWIW, I had submitted your code as a bug report to MS.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
On no David, I'm grateful that you answered. I was disappointed that I did
not receive any "official" reaction. Now, knowing that it was properly
reported, I'm completely satisfied.
Thanks again!
v
"David Lowndes" <da****@mvps.or g> wrote in message
news:ap******** *************** *********@4ax.c om... Thank you for your feedback. Sadly I expected someone from MS reacted to that. Next time I most probably won't report. TTBOMK this code is legal managed C++.
I'm sorry that you seem disappointed that I replied. I replied because no-one else had, and I was only being honest in admitting my lack of knowledge in managed C++ usage.
FWIW, I had submitted your code as a bug report to MS.
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
In general we don't post in threads where an MVP already addressed the issue
and in this case probably no one noticed that David said he didn't know
whether the example was valid code.
Ronald Laeremans
Group Program Manager
Visual C++ team
"Vladimir Kouznetsov" <vl************ *****@ngrain.co m> wrote in message
news:eq******** *****@TK2MSFTNG P11.phx.gbl... On no David, I'm grateful that you answered. I was disappointed that I did not receive any "official" reaction. Now, knowing that it was properly reported, I'm completely satisfied. Thanks again!
v
"David Lowndes" <da****@mvps.or g> wrote in message news:ap******** *************** *********@4ax.c om...Thank you for your feedback. Sadly I expected someone from MS reacted
tothat. Next time I most probably won't report. TTBOMK this code is legal managed C++.
I'm sorry that you seem disappointed that I replied. I replied because no-one else had, and I was only being honest in admitting my lack of knowledge in managed C++ usage.
FWIW, I had submitted your code as a bug report to MS.
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matthew Del Buono |
last post by:
Don't try to solve the problem. I've found a way -- around or fixing it. I'm
just curious as to whether this is Microsoft's problem in their compiler or
if there's a standard saying this is to be true (not necessarily an internal
compiler error, but still an error)
This may just a bit OT, but I decided to post it here instead of Microsoft
because my question is more directed towards standards...
Of course, any other day I would have...
|
by: Neil Zanella |
last post by:
Hello,
I wonder whether anyone has ever come across
the following g++ compiler error message. I
don't recall ever seeing it before. I solved
my problem but I am still not sure about
what this message is all about. Any
ideas?
error: invalid initialization of non-const reference of
|
by: Rajesh.S |
last post by:
some more info...
>-----Original Message-----
>I built a VC++.Net project as a dll and
>included it as a reference in a c# project.
>When I call a c++ function from the csharp
>project I get internal compiler error.
>
>The function in the c++ dll got the signature
>void __gc *CInitialContext::Lookup(char *)
|
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:
...
|
by: JTrigger |
last post by:
When I compile my project using the IDE on a development machine it works
just fine. When I compile it on the server using csc.exe, I get the
following error when I try to bring it up in the web browser. What is the
issue?
Thanks,
Jim
Server Error in '/psnRequest' Application.
----------------------------------------------------------------------------
| |
by: CB |
last post by:
I'm upgrading our product from VC6 to the VC7 compiler and
came across the C1001 error:
fatal error C1001: INTERNAL COMPILER ERROR (compiler
file 'f:\vs70builds\3077\vc\Compiler\CxxFE\sl\P1
\C\toil.c', line 6931)
I've managed to reliably reproduce it using the few lines
of code below that does not use any of my own product code:
|
by: Invalidlastname |
last post by:
Hi,
Our developer team recently started getting the compilation error, see below, once a while running the asp.net web application from Visual Studio 2003 (in debug mode), and we have to rebuild the solution or deleted the VsWebcache to get rid of this error
I suspect this error is related to that we strong named several assemblies for using queued components in NET EnterpriseServices. In development environment, we did not install those...
|
by: james margey |
last post by:
Hi to all,
I have spent 3 days at this error and i have two days to go for a
deadline, and i am about to go off my nut, the reason being: Microsoft
dont seem to be able to provide a solution, I have trawled the web and
the few that have the same error have not being provided a fix. This
error occurs if i make the slightest change in my project. If i
REBUILD my project no error occurs. So i keep having to rebuild my
project - this is not...
|
by: guillaume.braux |
last post by:
Hello,
I am running WS2008 + IIS7 + FASTCGI + ZendCore.
I have not modified the default ZendCore php.ini configuration file.
Actualy, any kind of PHP error, warning or notice gives me immediately
a IIS 500 Error (Internal Server Error).
It is a good thing in production environnement.
For debuging purposes, I want temporary to be able to see PHP warnings
and errors embedded on the html page.
|
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,...
|
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...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |