Boost C++ Libraries: Ticket #2034: Problem with nesting templates with same parameter names https://svn.boost.org/trac10/ticket/2034 <p> Having the code: </p> <pre class="wiki">11. [template same[x] [x]] 12. [template echo[a b] [a] [b]] 13. [template echo_twice[x] [echo [same [x]]..[same [x]]]] 14. [echo_twice foo] </pre><p> I get: </p> <pre class="wiki">13: error: Infinite loop detected 12: error: Invalid number of arguments passed. Expecting: 0 argument(s), got: 1 argument(s) instead. </pre><p> However, if x is changed to something different in line 11., it compiles fine. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2034 Trac 1.4.3 Daniel James Mon, 16 Mar 2009 20:46:09 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/2034#comment:1 https://svn.boost.org/trac10/ticket/2034#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Daniel James</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Daniel James Sat, 30 May 2009 13:01:57 GMT <link>https://svn.boost.org/trac10/ticket/2034#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2034#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/53451" title="Implement static/lexical scoping for 1.5. Refs #2034.">[53451]</a>) Implement static/lexical scoping for 1.5. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2034" title="#2034: Bugs: Problem with nesting templates with same parameter names (closed: fixed)">#2034</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 31 May 2009 15:39:47 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/2034#comment:3 https://svn.boost.org/trac10/ticket/2034#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.40.0</span> </li> </ul> Ticket Daniel James Wed, 08 Jul 2009 21:53:52 GMT milestone changed https://svn.boost.org/trac10/ticket/2034#comment:4 https://svn.boost.org/trac10/ticket/2034#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.40.0</span> → <span class="trac-field-new">Boost 1.41.0</span> </li> </ul> Ticket Daniel James Mon, 31 Aug 2009 11:36:50 GMT <link>https://svn.boost.org/trac10/ticket/2034#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2034#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/55908" title="Implement static/lexical scoping for 1.5. Refs #2034.">[55908]</a>) Implement static/lexical scoping for 1.5. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2034" title="#2034: Bugs: Problem with nesting templates with same parameter names (closed: fixed)">#2034</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Mon, 12 Oct 2009 19:54:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2034#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2034#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56752" title="Merge quickbook 1.5 from trunk. Merged revisions ...">[56752]</a>) Merge quickbook 1.5 from trunk. </p> <p> Merged revisions 55905-55917,56077,56715,56717-56719 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55905" title="Update quickbook version number.">r55905</a> | danieljames | 2009-08-31 12:36:13 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Update quickbook version number. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55906" title="Create entry for 1.5 in the change log. Starting it of with some of ...">r55906</a> | danieljames | 2009-08-31 12:36:23 +0100 (Mon, 31 Aug 2009) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Create entry for 1.5 in the change log. </p> </blockquote> <p> </p> <blockquote> <p> Starting it of with some of the changes that have been made to quickbook since 1.4 - considering the first 1.4 release as the proper 1.4 release. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55907" title="Wrap the template info in a struct. So that I can add extra scoping info.">r55907</a> | danieljames | 2009-08-31 12:36:34 +0100 (Mon, 31 Aug 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Wrap the template info in a struct. </p> </blockquote> <p> </p> <blockquote> <p> So that I can add extra scoping info. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55908" title="Implement static/lexical scoping for 1.5. Refs #2034.">r55908</a> | danieljames | 2009-08-31 12:36:47 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Implement static/lexical scoping for 1.5. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2034" title="#2034: Bugs: Problem with nesting templates with same parameter names (closed: fixed)">#2034</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55909" title="In quickbook 1.5 don't mix '..' and whitespace seperators for template ...">r55909</a> | danieljames | 2009-08-31 12:37:04 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> In quickbook 1.5 don't mix '..' and whitespace seperators for template arguments. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1174" title="#1174: Tasks: Simplified template arg handling (closed: fixed)">#1174</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55910" title="Put the quickbook version numbers in a single header, along with ...">r55910</a> | danieljames | 2009-08-31 12:37:17 +0100 (Mon, 31 Aug 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Put the quickbook version numbers in a single header, along with convenience functions for using them in spirit grammars. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55911" title="Ignore spaces after 'section:' for quickbook 1.5+ Refs #2712 And warn ...">r55911</a> | danieljames | 2009-08-31 12:37:32 +0100 (Mon, 31 Aug 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Ignore spaces after 'section:' for quickbook 1.5+ Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2712" title="#2712: Bugs: Quickbook uses article title rather than article id for links (closed: fixed)">#2712</a> </p> </blockquote> <p> </p> <blockquote> <p> And warn when section id is empty after colon. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55912" title="Introduce temporary id variable.">r55912</a> | danieljames | 2009-08-31 12:37:48 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Introduce temporary id variable. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55913" title="Table ids. Refs #1194.">r55913</a> | danieljames | 2009-08-31 12:37:59 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Table ids. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1194" title="#1194: Feature Requests: Add ID to table to allow linking to tables easily (closed: fixed)">#1194</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55914" title="Separate out the current version of the template argument parser, as I ...">r55914</a> | danieljames | 2009-08-31 12:38:11 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Separate out the current version of the template argument parser, as I want to create a new one for 1.5 </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55915" title="Don't use seperators that are in brackets, or are escaped. Refs #2036.">r55915</a> | danieljames | 2009-08-31 12:38:20 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Don't use seperators that are in brackets, or are escaped. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2036" title="#2036: Bugs: Crash with some invalid nested templates specification (closed: fixed)">#2036</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55916" title="Add missing table tests.">r55916</a> | danieljames | 2009-08-31 12:38:33 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Add missing table tests. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/55917" title="Support image attributes. Refs #1157.">r55917</a> | danieljames | 2009-08-31 12:38:47 +0100 (Mon, 31 Aug 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Support image attributes. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1157" title="#1157: Feature Requests: On Images (closed: fixed)">#1157</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/56077" title="fix for msvc">r56077</a> | djowel | 2009-09-07 02:35:24 +0100 (Mon, 07 Sep 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> fix for msvc </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/56715" title="Use qualified ids in tables, and fix a bug generating ids when there ...">r56715</a> | danieljames | 2009-10-11 17:18:04 +0100 (Sun, 11 Oct 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Use qualified ids in tables, and fix a bug generating ids when there isn't a section. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/56717" title="Document the simplified quickbook 1.5 argument separators.">r56717</a> | danieljames | 2009-10-11 19:21:11 +0100 (Sun, 11 Oct 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Document the simplified quickbook 1.5 argument separators. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/56718" title="Use quickbook 1.5 in the document block example.">r56718</a> | danieljames | 2009-10-11 19:21:32 +0100 (Sun, 11 Oct 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Use quickbook 1.5 in the document block example. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/56719" title="Add table ids to the documentation.">r56719</a> | danieljames | 2009-10-11 19:21:48 +0100 (Sun, 11 Oct 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Add table ids to the documentation. </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Tue, 13 Oct 2009 21:42:16 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2034#comment:7 https://svn.boost.org/trac10/ticket/2034#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed as long as the document is marked as quickbook 1.5. </p> Ticket