473,396 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

BUG: pin_ptr causes compiler crash


I posted this bug to MS, but was wondering if someone else could try
inserting the following into a C++/cli project and seeing if it causes the
compiler to barf:

array<float,2>^ fMatrix = gcnew array<float,2>(4,4);
pin_ptr<float> pf = &(fMatrix[0,0]);

It seems to work for int types but not for float and double.
Mar 3 '06 #1
3 1239
> I posted this bug to MS, but was wondering if someone else could try
inserting the following into a C++/cli project and seeing if it causes the
compiler to barf:

array<float,2>^ fMatrix = gcnew array<float,2>(4,4);
pin_ptr<float> pf = &(fMatrix[0,0]);


It killed the compiler allright.
Wooden stake right through the heart :-)

Create a bug report on
http://lab.msdn.microsoft.com/productfeedback

then post the link so that we can validate and vote for it.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 3 '06 #2
Thanks, Bruno, I appreciate it:

Here's the tinyurl link:

http://tinyurl.com/kblxs

Full URL:

http://lab.msdn.microsoft.com/produc...1-921f685ee8b9

"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
I posted this bug to MS, but was wondering if someone else could try
inserting the following into a C++/cli project and seeing if it causes
the compiler to barf:

array<float,2>^ fMatrix = gcnew array<float,2>(4,4);
pin_ptr<float> pf = &(fMatrix[0,0]);


It killed the compiler allright.
Wooden stake right through the heart :-)

Create a bug report on
http://lab.msdn.microsoft.com/productfeedback

then post the link so that we can validate and vote for it.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

Mar 3 '06 #3
> Full URL:

http://lab.msdn.microsoft.com/produc...1-921f685ee8b9


validated and voted for.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 3 '06 #4

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

Similar topics

33
by: Ken | last post by:
I have a C# Program where multiple threads will operate on a same Hashtable. This Hashtable is synchronized by using Hashtable.Synchronized(myHashtable) method, so no further Lock statements are...
3
by: Sven Groot | last post by:
This was posted by someone in comp.lang.c++, and later in microsoft.public.vstudio.general, but since I know Carl is in this group, and he's the one that should read this, I've reposted it here....
6
by: 314ccc | last post by:
I have stumbled upon a very nasty compiler bug. I have boiled it down to the following code. Granted, this code looks nonsensical, trust that the original source did much more and solves a...
5
by: Rarlfth Nadar | last post by:
Create a new solution, add a class... Public Class Class1 Public Sub New() .New() '<----- This line will blow up the IDE
11
by: Tao.Young | last post by:
when i doing this: pin_ptr<A> pA = gcnew A; // assume A is a ref class i'll get many compiler errors. does anyone know how to do it correctly? Thanks in advance.
16
by: Edward Diener | last post by:
After spending more than a day reducing a complicated compiler bug to a simple case I reported it to the MSDN Product Feedback Center as a bug just now. However this bug is completely stymying my...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
3
by: janzon | last post by:
Hi I have a really weird bug. An object in my program contains a std::stack<T>. When push is called, the program crashes. To eliminate that the error has to do with what is pushed, I create a...
7
by: David Lowndes | last post by:
I've got a project with a fair bit of mixed C++/CLI calling native code, often passing raw pointers - and I'm worrying that we may have occasions where we don't use pin_ptr when we need to. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...
0
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,...

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.