<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — C comment bug in gFortran?]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=155&amp;type=atom" />
	<updated>2013-02-20T13:09:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=155</id>
		<entry>
			<title type="html"><![CDATA[Re: C comment bug in gFortran?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=571#p571" />
			<content type="html"><![CDATA[<p>John,</p><p>GNU Fortran is probably interpreting the backslash as the traditional UNIX line continuation character.&nbsp; I didn&#039;t think GNU Fortran would do so, but it appears that would be the case. You should avoid ending lines with backslash in general.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-02-20T13:09:42Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=571#p571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: C comment bug in gFortran?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=570#p570" />
			<content type="html"><![CDATA[<p>I think it may be something to do with my use of a backslash at the end of the line indicating the start of my debug code.<br />Does anyone know if gFortran interprets this as some kind of a signal to the compiler?<br />--- <br />J.</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-02-20T10:23:41Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=570#p570</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[C comment bug in gFortran?]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=569#p569" />
			<content type="html"><![CDATA[<p><strong>Has anyone any similar experience of the following strange behaviour?</strong></p><p>I have just yesterday started experiencing it, in SF3.9.1117.<br />It seems mot likely to be something strange going on in gFortran, not in Simply Fortran.</p><p>I have started to find that the compiler is ignoring the first statement appearing immediately after a long C-comment line.<br />To make the compiler see and obey all such statements, I am having to insert an extra blank line after every C-comment line.</p><br /><p>EXAMPLE<br />-----------<br />Whenever I insert one of these I always top and tail it with a particular C-comment, as shown below. <br />In this example:<br />&nbsp; - The C--------debug----... lines are exactly 72 chars long;<br />&nbsp; - The variables called CR$, Bold$ etc are defined elsewhere;<br />&nbsp; - F%O%LU has an integer value, of an opened Fortran output file unit.<br />&nbsp; - I use the Insight debugger all the time but I also insert&nbsp; debug print statements.</p><br /><p><strong>With THIS code,the program sends nothing to the output file:</strong><br /><span style="color:Blue">C-------------------------------------------------------------debug----\<br />&nbsp; &nbsp; &nbsp; WRITE(F%O%LU,&#039;(A)&#039;) CR$//CR$//CR$//Bold$//&#039;SOLVE&#039;//unBold$//CR$<br />&nbsp; &nbsp; &nbsp; |<br />&nbsp; &nbsp; &nbsp; [more debug statements]<br />&nbsp; &nbsp; &nbsp; |<br />C-------------------------------------------------------------debug----/</span></p><br /><p><strong>With THIS code, the program prints the word, &quot;SOLVE&quot; to the output file</strong><br />(Please (note the <em><span class="bbu">extra blank line</span></em>) after the first C--------- comment statement):<br /><span style="color:Blue">C-------------------------------------------------------------debug----\</span></p><p><span style="color:Blue">&nbsp; &nbsp; &nbsp; WRITE(F%O%LU,&#039;(A)&#039;) CR$//CR$//CR$//Bold$//&#039;SOLVE&#039;//unBold$//CR$<br />&nbsp; &nbsp; &nbsp; |<br />&nbsp; &nbsp; &nbsp; [more debug statements]<br />&nbsp; &nbsp; &nbsp; |<br />C-------------------------------------------------------------debug----/</span></p><p>--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-02-20T09:51:25Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=569#p569</id>
		</entry>
</feed>
