<?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[Problem mit constexpr]]></title><description><![CDATA[<pre><code class="language-cpp">constexpr unsigned foo[] = { 0, foo[0] };
int main() {}
</code></pre>
<p>gcc sagt dazu:</p>
<blockquote>
<p>test.cpp:1:40: error: the value of ‘foo’ is not usable in a constant expression<br />
test.cpp:1:20: note: ‘foo’ used in its own initializer</p>
</blockquote>
<p>hat er recht?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/291196/problem-mit-constexpr</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 21:25:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/291196.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Aug 2011 13:22:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit constexpr on Fri, 12 Aug 2011 13:22:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">constexpr unsigned foo[] = { 0, foo[0] };
int main() {}
</code></pre>
<p>gcc sagt dazu:</p>
<blockquote>
<p>test.cpp:1:40: error: the value of ‘foo’ is not usable in a constant expression<br />
test.cpp:1:20: note: ‘foo’ used in its own initializer</p>
</blockquote>
<p>hat er recht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2105367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2105367</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Fri, 12 Aug 2011 13:22:52 GMT</pubDate></item></channel></rss>