<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Problem when compiling: mismatch between scalar and rank-1 array]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=855&amp;type=atom" />
	<updated>2022-05-20T12:02:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=855</id>
		<entry>
			<title type="html"><![CDATA[Re: Problem when compiling: mismatch between scalar and rank-1 array]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3923#p3923" />
			<content type="html"><![CDATA[<p>Unfortunately, passing the flag as indicated didn&#039;t solve the problem. I guess that the compiler is ignoring the flag. I also tried with &quot;-std=legacy&quot; because &quot;-fallow-argument-mismatch&quot; is contained in &quot;-std=legacy&quot;. But didn&#039;t work also.<br />The problem is with an old code which tries to pass a Hollerith variable as an argument of another subroutine, where the variable which receives the Hollerith one is defined as an integer array of dimension 1. I will continue looking for a solution, because the old code is very good, and I would like to use it. For now, I managed myself in order to not use the problematic code. Thank you for your help, Jeff.</p>]]></content>
			<author>
				<name><![CDATA[mchiapparini]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=4079</uri>
			</author>
			<updated>2022-05-20T12:02:49Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3923#p3923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problem when compiling: mismatch between scalar and rank-1 array]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3922#p3922" />
			<content type="html"><![CDATA[<p>Oh! Thank you very much!</p>]]></content>
			<author>
				<name><![CDATA[mchiapparini]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=4079</uri>
			</author>
			<updated>2022-05-19T19:25:50Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3922#p3922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problem when compiling: mismatch between scalar and rank-1 array]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3921#p3921" />
			<content type="html"><![CDATA[<p>You can enter compiler flags by opening the <a href="https://simplyfortran.com/docs/full/windows/options/project.html">Project Options window</a> from the <em>Options</em> menu under <em>Project...</em>&nbsp; In the <em>Project Options</em> window, select the <em>Compiler Flags</em> category and enter that flag in the box labeled &quot;Fortran.&quot;</p><p><span class="postimg"><img src="https://simplyfortran.com/docs/full/windows/options/project_options_flags.png" alt="https://simplyfortran.com/docs/full/windows/options/project_options_flags.png" /></span></p><p>Let me know if the above works!</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2022-05-18T11:35:15Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3921#p3921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem when compiling: mismatch between scalar and rank-1 array]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3920#p3920" />
			<content type="html"><![CDATA[<p>Hello. I am a new user o SF, and I am still a bit lost. I need to use an old fortran code, and I am having problems with mismatch arguments (a scalar passed to a rank-1 array). The code worked perfectly several years ago. The problem is with the new Gfortran compiler defaults:<br />&quot;Gfortran 10 added the default behavior to make type mismatches an error instead of a warning. Legacy Fortran programs too often did not explicitly specify the procedure interfaces to allow implicit polymorphism. The Fortran 2008 standard cleaned up this situation in part with type(*).<br />Workaround: Gfortran flag &quot; -fallow-argument-mismatch &quot; can be used to degrade the errors to warnings. It is however strongly recommended to fix the problem in the legacy code, if it’s part of your code ownership.&quot;</p><p>So, I would like to pass the flag &quot; -fallow-argument-mismatch &quot; to the SF compiler. How should I proceed? Thank you in advance.</p>]]></content>
			<author>
				<name><![CDATA[mchiapparini]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=4079</uri>
			</author>
			<updated>2022-05-17T13:26:39Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3920#p3920</id>
		</entry>
</feed>
