This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] libstdc++/61390 don't redeclare template-parameters
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 4 Aug 2014 20:00:14 +0100
- Subject: Re: [patch] libstdc++/61390 don't redeclare template-parameters
- Authentication-results: sourceware.org; auth=none
- References: <20140610180955 dot GN30729 at redhat dot com>
On 10/06/14 19:09 +0100, Jonathan Wakely wrote:
Yo dawg, I heard you like templates, so I renamed the
template-parameters of your template template-parameters so they are
not the same as the template-parameters of your templates.
G++ fails to diagnose this (PR17267) but Clang gives an error and EDG
gives a warning.
Tested x86_64-linux, committed to trunk.
PR libstdc++/61390
* include/ext/pb_ds/detail/bin_search_tree_/traits.hpp
(bin_search_tree_traits): Do not redeclare template-parameters.
* testsuite/util/testsuite_iterators.h (test_container): Likewise.
Committed to the 4.9 branch too.