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

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).