public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/61390] New: error in nested template parameter in ext/pb_ds header file
@ 2014-06-02 15:31 john.tromp at gmail dot com
  2014-06-02 16:15 ` [Bug libstdc++/61390] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: john.tromp at gmail dot com @ 2014-06-02 15:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61390

            Bug ID: 61390
           Summary: error in nested template parameter in ext/pb_ds header
                    file
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.tromp at gmail dot com

Include file ext/pb_ds/detail/bin_search_tree_/traits.hpp has two occurances
(lines 53 and 160 in 4.8.1) of
template<typename Key,
         ...
         class Cmp_Fn,
         template<typename Node_CItr,
                  class Node_Itr,
                  class Cmp_Fn,
                  typename _Alloc>
         class Node_Update,
         class Node,
         typename _Alloc>
...

on which some compilers in c++11 mode (e.g. clang++ -std=c++11) rightfully
raise an error since the second declaration of 'Cmp_Fn' shadows the first.

This is trivially avoided by renaming the second as _Cmp_Fn


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/61390] error in nested template parameter in ext/pb_ds header file
  2014-06-02 15:31 [Bug libstdc++/61390] New: error in nested template parameter in ext/pb_ds header file john.tromp at gmail dot com
@ 2014-06-02 16:15 ` redi at gcc dot gnu.org
  2014-06-10 18:09 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-06-02 16:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61390

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-06-02
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, I noticed this a few weeks ago.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/61390] error in nested template parameter in ext/pb_ds header file
  2014-06-02 15:31 [Bug libstdc++/61390] New: error in nested template parameter in ext/pb_ds header file john.tromp at gmail dot com
  2014-06-02 16:15 ` [Bug libstdc++/61390] " redi at gcc dot gnu.org
@ 2014-06-10 18:09 ` redi at gcc dot gnu.org
  2014-08-04 18:51 ` redi at gcc dot gnu.org
  2014-08-04 18:56 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-06-10 18:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61390

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Jun 10 18:09:18 2014
New Revision: 211421

URL: http://gcc.gnu.org/viewcvs?rev=211421&root=gcc&view=rev
Log:
    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.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/ext/pb_ds/detail/bin_search_tree_/traits.hpp
    trunk/libstdc++-v3/testsuite/util/testsuite_iterators.h


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/61390] error in nested template parameter in ext/pb_ds header file
  2014-06-02 15:31 [Bug libstdc++/61390] New: error in nested template parameter in ext/pb_ds header file john.tromp at gmail dot com
  2014-06-02 16:15 ` [Bug libstdc++/61390] " redi at gcc dot gnu.org
  2014-06-10 18:09 ` redi at gcc dot gnu.org
@ 2014-08-04 18:51 ` redi at gcc dot gnu.org
  2014-08-04 18:56 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-08-04 18:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61390

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Aug  4 18:50:25 2014
New Revision: 213603

URL: https://gcc.gnu.org/viewcvs?rev=213603&root=gcc&view=rev
Log:
Backported from mainline
2014-06-10  Jonathan Wakely  <jwakely@redhat.com>

    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.

Modified:
    branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
   
branches/gcc-4_9-branch/libstdc++-v3/include/ext/pb_ds/detail/bin_search_tree_/traits.hpp
    branches/gcc-4_9-branch/libstdc++-v3/testsuite/util/testsuite_iterators.h


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/61390] error in nested template parameter in ext/pb_ds header file
  2014-06-02 15:31 [Bug libstdc++/61390] New: error in nested template parameter in ext/pb_ds header file john.tromp at gmail dot com
                   ` (2 preceding siblings ...)
  2014-08-04 18:51 ` redi at gcc dot gnu.org
@ 2014-08-04 18:56 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-08-04 18:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61390

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.2

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
fixed for 4.9.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-04 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-02 15:31 [Bug libstdc++/61390] New: error in nested template parameter in ext/pb_ds header file john.tromp at gmail dot com
2014-06-02 16:15 ` [Bug libstdc++/61390] " redi at gcc dot gnu.org
2014-06-10 18:09 ` redi at gcc dot gnu.org
2014-08-04 18:51 ` redi at gcc dot gnu.org
2014-08-04 18:56 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).