public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15534] New: Fails to inherit types from base class
@ 2004-05-19 19:27 igodard at pacbell dot net
  2004-05-19 19:42 ` [Bug c++/15534] " igodard at pacbell dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: igodard at pacbell dot net @ 2004-05-19 19:27 UTC (permalink / raw)
  To: gcc-bugs

In the source at the point of the first error messages:
    typedef
    typename std::allocator<T>::size_type st1;
    typedef
    typename size_type  st;
    typedef
    size_type   st2;
the first typedef works but the second two do not even though the class is derived from std::allocator<T>. In simple cases, e.g.:class A{
public:
    typedef
    int B;
    };

class C : public A {
public:
    B b;
    };

the derived class can inherit the types of the base class, but not here. Sticking in a "typename" doesn't help.

-- 
           Summary: Fails to inherit types from base class
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-05-19 13:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-19 19:27 [Bug c++/15534] New: Fails to inherit types from base class igodard at pacbell dot net
2004-05-19 19:42 ` [Bug c++/15534] " igodard at pacbell dot net
2004-05-19 19:47 ` igodard at pacbell dot net
2004-05-19 20:22 ` pinskia at gcc dot gnu dot org
2004-05-19 23:47 ` igodard at pacbell dot net
2004-05-20  0:59 ` pinskia at gcc dot gnu dot org
2004-05-20 13:37 ` bangerth at dealii dot 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).