Bug#510014: g++-4.3: Probably incorrect inheritance of template class from private class.
Package: g++-4.3
Version: 4.3.2-1
Severity: minor
Following code compiles:
/////
class E { class B {}; };
template<class>
class D : E::B {};
int main()
{
D<int>();
}
/////
with:
g++ -x c++ -W -Wall -std=c++98 -pedantic main.cpp
But should it?
-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (500, 'testing'), (497, 'unstable'), (495, 'stable'), (493, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages g++-4.3 depends on:
ii gcc-4.3 4.3.2-1 The GNU C compiler
ii gcc-4.3-base 4.3.2-1 The GNU Compiler Collection (base
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libgmp3c2 2:4.2.2+dfsg-3 Multiprecision arithmetic library
ii libmpfr1ldbl 2.3.1.dfsg.1-2 multiple precision floating-point
ii libstdc++6-4.3-dev 4.3.2-1 The GNU Standard C++ Library v3 (d
g++-4.3 recommends no packages.
Versions of packages g++-4.3 suggests:
ii g++-4.3-multilib 4.3.2-1 The GNU C++ compiler (multilib fil
ii gcc-4.3-doc 4.3.2.nf1-1 documentation for the GNU compiler
pn libstdc++6-4.3-dbg <none> (no description available)
-- no debconf information
Reply to: