This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11794] New: using declaration inside nested class seems ignored
- From: "stefaandr at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2003 18:11:53 -0000
- Subject: [Bug c++/11794] New: using declaration inside nested class seems ignored
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11794
Summary: using declaration inside nested class seems ignored
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stefaandr at hotmail dot com
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
The following code compiles with gcc 3.3, but not with gcc version 3.4 20030803
(experimental), though I think I added the right using-declaration.
template < class T > struct a {
struct a1:public T {
using T::aa;
a1() {
aa = 5;
};
};
};
struct b {
int aa;
};
a < b >::a1 Ia;
Reading specs from /esat/quendi/gcc/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: ../../gcc/3.4/configure --program-suffix=-3.4
--enable-languages=c,c++ --prefix=/esat/quendi/gcc
Thread model: posix
gcc version 3.4 20030803 (experimental)
/esat/quendi/gcc/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -quiet -v
-D_GNU_SOURCE p5.cpp -quiet -dumpbase p5.cpp -mtune=pentiumpro -auxbase-strip p5
-version -o /tmp/cczVENum.s
ignoring nonexistent directory
"/esat/quendi/gcc/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/esat/quendi/gcc/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
/esat/quendi/gcc/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
/esat/quendi/gcc/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
/usr/local/include
/esat/quendi/gcc/include
/esat/quendi/gcc/lib/gcc/i686-pc-linux-gnu/3.4/include
/usr/include
End of search list.
GNU C++ version 3.4 20030803 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48056
p5.cpp: In constructor `a<T>::a1::a1()':
p5.cpp:1: error: `aa' undeclared (first use this function)
p5.cpp:1: error: (Each undeclared identifier is reported only once for each
function it appears in.)