<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — C comment bug in gFortran?]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=155</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=155&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in C comment bug in gFortran?.]]></description>
		<lastBuildDate>Wed, 20 Feb 2013 13:09:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: C comment bug in gFortran?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=571#p571</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 20 Feb 2013 13:09:42 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=571#p571</guid>
		</item>
		<item>
			<title><![CDATA[Re: C comment bug in gFortran?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=570#p570</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Wed, 20 Feb 2013 10:23:41 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=570#p570</guid>
		</item>
		<item>
			<title><![CDATA[C comment bug in gFortran?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=569#p569</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Wed, 20 Feb 2013 09:51:25 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=569#p569</guid>
		</item>
	</channel>
</rss>
