This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13052] New: error in looking up template super classes in different namespace


Hi,

it seems like gcc has problems looking up the name of a super class, which is in
a different namespace, when you odmit the namespace name. it works with
icc,comeau and vc6. so i consider it as a bug in gcc. tested gcc versions are
3.3.2 and 3.4-20031112. 3.4 built with the default configure parameters. 3.3.2
is gentoo's versions (gcc (GCC) 3.3.2 20031022 (Gentoo Linux 3.3.2-r2,
propolice)). a small program demonstrating the bug wil be appended. gcc output is:
x.cc: In function `int main()':
x.cc:12: error: 'class Y<0>' has no member named 'X'
x.cc:12: error: `::x' undeclared (first use here)

-- 
           Summary: error in looking up template super classes in different
                    namespace
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 3 dot 14159 at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]