Find All References causes Visual Studio to become unresponsive

When I right click a Fortran subroutine and choose "Find All References" from the context menu, Visual Studio becomes unresponsive. I must use task manager to end Visual Studio's process.

My solution is comprised of mixed languages C++\C\Fortran\.NET.

Microsoft Visual Studio Premium 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework Version 4.5.51209

repeat initialization of local variable

I found a forum topic similar to this, from 2009.  Notwithstanding the Fortran standard: ""A variable, or part of a variable, shall not be explicitly initialized more than once in a program", there is a method to the following madness.

This legacy program defined an array for which the "default" value was 0, and some elements were then assigned non-zero values.  A trivial example:

integer a(2,2,2)
data a/8*0/
data a(2,2,2)/1/

Incomplete C++11 "alignas" implementation


icc 15.0 gives me a warning when compiling the following code:

using type alignas(64) = T;

warning #3463: alignas does not apply here
using type alignas(64) = T;

If I understand correctly my code is correct, and indeed GCC and Clang compile it properly without warnings. Is this a known issue with icc? Can I expect a fix in future versions?


initialization of local variables

My co-developer reports that, contrary to his expectations, Intel Fortran seems to be initializing local numeric variables, both scalar and array, to 0 or 0.0

I should note that In our application, all local variables are saved, and all arrays are pre-allocated (sizes are explicit in the code).  No arrays or structures are allocated at run-time, and no local variables are recursive.

Is his generalization correct?



Parameterized Derived Data Type Allocation Error

Hi all, the following is a simplified version of a code that I wrote that does not seem to work. For the larger code I just get a generic "compliation error" and then the compiler stops. I tracked that to where I am passing the parameterized derived data type into a subroutine with assumed parameters (eg TYPE (MYTYPE(*,*)),INTENT(INOUT):: TYP). I am not using kind numbers, so I it only contains portions that are defined with LEN in the data type.


Below is an example code that results in two different errors:

Beginner choice

I'm learning WinAPI and like to play around with C++ for it.
Does the compiler really matters to this kind of task?
What Intel's compiler can do beyond MS C++? What is it for, exactly?
I also want to do some OpenGL programming? Does it help on it?

Redistributable Libraries and/or static compilation


I need to send a co-worker the redistributable libraries for the latest Fortran compiler. Where can I find those (in my computer or on-line)?

Also, does the recipient have to do anything else (move dll's to same directory as exe, define an environment variable)?

As an alternative, is there an easy way to link everything statically? This is a simple Fortran console application that does not call any special numerical packages.

Calling a C function in Visual Studio from a Visual Fortran code


I have a Visual Studio 2012 installed on Windows 8.1. Also, I installed Visual Fortran. I want to create a solution with two projects one in Fortran and one in C, then be able to call C function from Fortran code. Can anyone, please, show a simple step by step example on how to achieve this in VS? Thanks.

Subscribe to Compilers