<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Should I report a bug ?]]></title><description><![CDATA[<p dir="auto">I have this odd behavior of text enclosed in</p>
<p dir="auto">#ifdef BYPASS<br />
....<br />
While <strong>I've</strong> been programming<br />
....<br />
#endif</p>
<p dir="auto">compiler complains  about "missing terminating character "  in highlighted / bold  snippet.  It does NOT ignore <strong>"  '  "</strong> .  Why?</p>
]]></description><link>https://forum.qt.io/topic/133716/should-i-report-a-bug</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 21:13:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/133716.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Jan 2022 16:47:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Should I report a bug ? on Sat, 22 Jan 2022 12:32:04 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch<br />
Are you happy with the definitive answers you got here?<br />
Are you going to mark this topic as solved?<br />
Or just ignore everything?</p>
]]></description><link>https://forum.qt.io/post/699725</link><guid isPermaLink="true">https://forum.qt.io/post/699725</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sat, 22 Jan 2022 12:32:04 GMT</pubDate></item><item><title><![CDATA[Reply to Should I report a bug ? on Thu, 20 Jan 2022 20:49:54 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch said in <a href="/post/699558">Should I report a bug ?</a>:</p>
<blockquote>
<p dir="auto">Are you familiar with  preprocessor directives?<br />
They have been  integral part of C since its conception.<br />
If you are not (familiar with preprocessor )  , how  posting the entire several hundreds lines of text will help (you) to understand the issue ?</p>
</blockquote>
<p dir="auto">yes i am familiar with this concept, thank you,<br />
Nevertheless everything inside conditional preprocessor directives must be valid C++, which arbitrary text is not.</p>
<p dir="auto">I asked for a bigger snippet to get an idea where and how your noted text is used exactly.</p>
]]></description><link>https://forum.qt.io/post/699570</link><guid isPermaLink="true">https://forum.qt.io/post/699570</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Thu, 20 Jan 2022 20:49:54 GMT</pubDate></item><item><title><![CDATA[Reply to Should I report a bug ? on Thu, 20 Jan 2022 20:23:25 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch said in <a href="/post/699558">Should I report a bug ?</a>:</p>
<blockquote>
<p dir="auto">Are you familiar with  preprocessor directives?</p>
</blockquote>
<p dir="auto">I suspect <a class="plugin-mentions-user plugin-mentions-a" href="/user/raven-worx">@<bdi>raven-worx</bdi></a> is perfectly familiar with C, C++, preprocessors and other such :)</p>
<blockquote>
<p dir="auto">that should include " ' "</p>
</blockquote>
<p dir="auto">No.  C++ preprocessor <em>tokenizes</em> input.  This is different from the old C preprocessor behaviour.  You can't assume <em>everything</em> is identical.  It looks for <code>"</code> (double-quote) as potential strings but also <code>'</code> (single-quote) as potential literal character sequences.  These could be unterminated.</p>
<p dir="auto">You could read:<br />
<a href="https://gcc.gnu.org/onlinedocs/cpp/Tokenization.html#Tokenization" target="_blank" rel="noopener noreferrer nofollow ugc">https://gcc.gnu.org/onlinedocs/cpp/Tokenization.html#Tokenization</a><br />
<a href="https://gcc.gnu.org/onlinedocs/cpp/Traditional-lexical-analysis.html#Traditional-lexical-analysis" target="_blank" rel="noopener noreferrer nofollow ugc">https://gcc.gnu.org/onlinedocs/cpp/Traditional-lexical-analysis.html#Traditional-lexical-analysis</a></p>
<p dir="auto">You seem to have a single single-quote on a line.  You are likely to have that reported as "an unterminated character".  It is perhaps a warning rather than error.  Behaviour varies by compiler.</p>
<p dir="auto">Needless to say, this is from whatever C++ compiler you are using.  Nothing to do with Qt or Creator.  I don't know who you have in mind for reporting a bug to.</p>
<p dir="auto">One online compiler (<strong>gcc</strong>):</p>
<pre><code>// Example program
int main()
{
#ifdef UNUSED
Ignore this
but can't have this single quote
#endif
}
</code></pre>
<p dir="auto">generates compiler warning:<br />
<code>6:8: warning: missing terminating ' character</code></p>
<p dir="auto">You can look at it via <a href="https://godbolt.org/z/Px9WanYWW" target="_blank" rel="noopener noreferrer nofollow ugc">https://godbolt.org/z/Px9WanYWW</a></p>
<p dir="auto">Commenting your "free text" lines by <code>// ...</code> would avoid the problem.</p>
]]></description><link>https://forum.qt.io/post/699562</link><guid isPermaLink="true">https://forum.qt.io/post/699562</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 20 Jan 2022 20:23:25 GMT</pubDate></item><item><title><![CDATA[Reply to Should I report a bug ? on Thu, 20 Jan 2022 19:47:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raven-worx">@<bdi>raven-worx</bdi></a> said in <a href="/post/699543">Should I report a bug ?</a>:</p>
<blockquote>
<p dir="auto">@AnneRanch<br />
but the line containing the error is not C++, thus an error is expected.</p>
<blockquote>
<p dir="auto">It does NOT ignore " ' " . Why?</p>
</blockquote>
<p dir="auto">why do you expect it to be ignored?<br />
show the whole snippet of code please.</p>
</blockquote>
<p dir="auto">Are you familiar with  preprocessor directives?<br />
They have been  integral part of C since its conception.<br />
If you are not (familiar with preprocessor )  , how  posting the entire several hundreds lines of text will help (you) to understand the issue ?</p>
<p dir="auto">#ifdef BYPASS</p>
<p dir="auto"><strong>do not process what is inside here</strong><br />
unless BYPASS is define(d)<br />
that should  include "   '  "</p>
<p dir="auto">#endif</p>
]]></description><link>https://forum.qt.io/post/699558</link><guid isPermaLink="true">https://forum.qt.io/post/699558</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Thu, 20 Jan 2022 19:47:16 GMT</pubDate></item><item><title><![CDATA[Reply to Should I report a bug ? on Thu, 20 Jan 2022 17:49:07 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch<br />
but the line containing the error is not C++, thus an error is expected.</p>
<blockquote>
<p dir="auto">It does NOT ignore " ' " . Why?</p>
</blockquote>
<p dir="auto">why do you expect it to be ignored?<br />
show the whole snippet of code please.</p>
]]></description><link>https://forum.qt.io/post/699543</link><guid isPermaLink="true">https://forum.qt.io/post/699543</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Thu, 20 Jan 2022 17:49:07 GMT</pubDate></item><item><title><![CDATA[Reply to Should I report a bug ? on Thu, 20 Jan 2022 17:29:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raven-worx">@<bdi>raven-worx</bdi></a> said in <a href="/post/699540">Should I report a bug ?</a>:</p>
<blockquote>
<p dir="auto">@AnneRanch<br />
sure, this isnt C++</p>
</blockquote>
<p dir="auto">To whom ( the bell tools ) ?<br />
preprocessor r forum ?</p>
]]></description><link>https://forum.qt.io/post/699542</link><guid isPermaLink="true">https://forum.qt.io/post/699542</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Thu, 20 Jan 2022 17:29:06 GMT</pubDate></item><item><title><![CDATA[Reply to Should I report a bug ? on Thu, 20 Jan 2022 17:25:31 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch<br />
sure, this isnt C++</p>
]]></description><link>https://forum.qt.io/post/699540</link><guid isPermaLink="true">https://forum.qt.io/post/699540</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Thu, 20 Jan 2022 17:25:31 GMT</pubDate></item></channel></rss>