<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — go to label]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=853&amp;type=atom" />
	<updated>2022-04-26T01:55:22Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=853</id>
		<entry>
			<title type="html"><![CDATA[Re: go to label]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3914#p3914" />
			<content type="html"><![CDATA[<p>Thanks Jeff. Sure appreciate it.</p>]]></content>
			<author>
				<name><![CDATA[jackmitchener]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4073</uri>
			</author>
			<updated>2022-04-26T01:55:22Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3914#p3914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: go to label]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3913#p3913" />
			<content type="html"><![CDATA[<p>Your code actually produces two errors, and the important one is actually causing the error you&#039;re reporting.&nbsp; The line with label <em>17</em> is not formatted correctly.&nbsp; The compiler actually does produce an error:</p><div class="codebox"><pre><code>going.f90:19:13:

   19 | 17    PRINT*(I1,f3.0),i, summ
      |             1
Error: Expected comma in I/O list at (1)</code></pre></div><p>You actually need to fix this line first.&nbsp; I would personally rewrite it as:</p><div class="codebox"><pre><code>17    Write(*, &#039;(I1,f3.0)&#039;) i, summ</code></pre></div><p>The format you had used isn&#039;t valid Fortran, at least in the modern, standards-compliant sense.&nbsp; After I change it to what I&#039;ve suggested, it works fine.&nbsp; The label couldn&#039;t be found because it couldn&#039;t successfully compile the labeled line.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2022-04-25T19:36:00Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3913#p3913</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: go to label]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3912#p3912" />
			<content type="html"><![CDATA[<p>!Using f90<br />program helloworld&nbsp; &nbsp;<br />&nbsp; &nbsp; implicit none&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; integer i, row, col <br />&nbsp; &nbsp; real a(9), summ<br />&nbsp; &nbsp; a=0&nbsp; &nbsp;<br />&nbsp; &nbsp; summ=0<br />&nbsp; &nbsp; row =0<br />&nbsp; &nbsp; col =0<br />&nbsp; &nbsp; print*,&quot;Hello World&quot;&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; read*, a<br />&nbsp; &nbsp; Print*,a<br />&nbsp; &nbsp; DO i=0, 8<br />&nbsp; &nbsp; &nbsp; col= REAL(i) <br />&nbsp; &nbsp; &nbsp; if ((i .GT. 0).AND.(a(i) .EQ.0 )) go to 17&nbsp; ! This is the problem line.<br />&nbsp; &nbsp; &nbsp; summ = summ + 2**i<br />17&nbsp; &nbsp; PRINT*(I1,f3.0),i, summ<br />&nbsp; &nbsp; end do<br />end program helloworld</p>]]></content>
			<author>
				<name><![CDATA[jackmitchener]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4073</uri>
			</author>
			<updated>2022-04-25T14:25:07Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3912#p3912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: go to label]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3911#p3911" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>jackmitchener wrote:</cite><blockquote><p>... then put &quot;30&quot; where the line number would have been (if line#s were shown) then<br />program will not build.&nbsp; I get &quot;Error. 30 not defined.&quot;</p></blockquote></div><p>Can you provide a little more context?&nbsp; It seems that the issue is how the numbered label is defined, and you didn&#039;t provide the actual text of said line.&nbsp; I&#039;m not sure what &quot;<em>put &quot;30&quot; where the line number would have been</em>&quot; means.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2022-04-25T12:36:46Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3911#p3911</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: go to label]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3910#p3910" />
			<content type="html"><![CDATA[<p>Is that your exact code? Shouldn&#039;t &quot;go to&quot; be one word? GOTO 30<br />What variety of Fortran are you using?</p><p>I&#039;m not asking what version of SimplyFortran. I mean are you using .F95 or some other.</p>]]></content>
			<author>
				<name><![CDATA[designer]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3903</uri>
			</author>
			<updated>2022-04-24T20:41:24Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3910#p3910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[go to label]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3909#p3909" />
			<content type="html"><![CDATA[<p>when I write:&nbsp; if (foo .GT. 0) go to 30<br />and then put &quot;30&quot; where the line number would have been (if line#s were shown) then<br />program will not build.&nbsp; I get &quot;Error. 30 not defined.&quot;</p><p>How do I get a line label to work?</p>]]></content>
			<author>
				<name><![CDATA[jackmitchener]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4073</uri>
			</author>
			<updated>2022-04-24T02:54:12Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3909#p3909</id>
		</entry>
</feed>
