BUG: pin_ptr causes compiler crash

N

Nobody

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.
 
B

Bruno van Dooren

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.
(e-mail address removed)
Remove only "_nos_pam"
 
N

Nobody

Thanks, Bruno, I appreciate it:

Here's the tinyurl link:

http://tinyurl.com/kblxs

Full URL:

http://lab.msdn.microsoft.com/produ...edbackid=d711083f-a944-470f-ae51-921f685ee8b9



Bruno van Dooren said:
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.
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top