public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17057] New: problems disambiguating std::allocator::rebind
@ 2004-08-17  4:00 bkoz at gcc dot gnu dot org
  2004-08-17  4:01 ` [Bug c++/17057] " bkoz at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-08-17  4:00 UTC (permalink / raw)
  To: gcc-bugs

The attached pre-process file will not compile on linux with today's gcc.

gcc version 3.5.0 20040816 (experimental)

However, EDG FE's don't have a problem with it. Indeed, it looks right to me,
but perhaps I miss something.

I get:

In file included from
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/c++allocator.h:35,
                 from
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/bits/allocator.h:53,
                 from
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/memory:56,
                 from ext/mt_allocator.cc:3:
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:277:
error: non-template `_M_rebind' used as template
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:277:
note: use `_PoolTp1::template _M_rebind' to indicate that it is a template
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:277:
error: type `_PoolTp1' is not derived from type `__gnu_cxx::__mt_alloc<_Tp,
_PoolTp>::rebind<_Tp1, _PoolTp1>'
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:278:
error: `rebind_type' was not declared in this scope
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:278:
error: template argument 2 is invalid
ext/mt_allocator.cc: In function `void test04()':
ext/mt_allocator.cc:180: error: non-template `rebind' used as template
ext/mt_allocator.cc:180: note: use `test04()::allocator_type::template rebind'
to indicate that it is a template
ext/mt_allocator.cc:180: error: too few template-parameter-lists
ext/mt_allocator.cc:182: error: `rebind_type' was not declared in this scope
ext/mt_allocator.cc:182: error: expected `;' before "a2"
ext/mt_allocator.cc:183: error: `a2' was not declared in this scope
ext/mt_allocator.cc:185: error: `rebind_type' is not a class or namespace
ext/mt_allocator.cc:196: error: `rebind_type' is not a class or namespace
ext/mt_allocator.cc:196: error: `pointer' does not name a type
ext/mt_allocator.cc:204: error: `p2' was not declared in this scope


The suggestion that g++ throws out there turns out to not be helpful.

-benjamin

-- 
           Summary: problems disambiguating std::allocator::rebind
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkoz at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17057


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

end of thread, other threads:[~2004-08-18 22:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-17  4:00 [Bug c++/17057] New: problems disambiguating std::allocator::rebind bkoz at gcc dot gnu dot org
2004-08-17  4:01 ` [Bug c++/17057] " bkoz at gcc dot gnu dot org
2004-08-17  4:04 ` bkoz at gcc dot gnu dot org
2004-08-17  4:13 ` bkoz at gcc dot gnu dot org
2004-08-17  4:57 ` pinskia at gcc dot gnu dot org
2004-08-17  5:01 ` pinskia at gcc dot gnu dot org
2004-08-17  5:52 ` mmitchel at gcc dot gnu dot org
2004-08-17 13:38 ` bangerth at dealii dot org
2004-08-17 16:10 ` bkoz at gcc dot gnu dot org
2004-08-17 16:22 ` mark at codesourcery dot com
2004-08-17 16:32 ` pinskia at gcc dot gnu dot org
2004-08-17 16:40 ` bkoz at redhat dot com
2004-08-17 16:41 ` bkoz at redhat dot com
2004-08-18 22:19 ` gdr at integrable-solutions dot net

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