This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11763] New: [tree-ssa] members disappear when inherited from template parameter class
- From: "stefaandr at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2003 16:15:27 -0000
- Subject: [Bug c++/11763] New: [tree-ssa] members disappear when inherited from template parameter class
- 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=11763
Summary: [tree-ssa] members disappear when inherited from
template parameter class
Product: gcc
Version: tree-ssa
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
This code compiles on 3.3 but not on tree-ssa:
template <class T> struct b : public T { b() { aa = 5; }; };
struct a { int aa; };
b < a > test;
Reading specs from /esat/quendi/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: ../gcc/configure --prefix=/esat/quendi/gcc --enable-languages=c,c++
Thread model: posix
gcc version 3.5-tree-ssa 20030731 (merged 20030722)
/esat/quendi/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/cc1plus -quiet -v
-D_GNU_SOURCE t6.cpp -quiet -dumpbase t6.cpp -mtune=pentiumpro -auxbase-strip t6
-version -o /tmp/ccgUUkol.s
ignoring nonexistent directory "/esat/quendi/gcc/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/esat/quendi/gcc/include/c++/3.5-tree-ssa
/esat/quendi/gcc/include/c++/3.5-tree-ssa/i686-pc-linux-gnu
/esat/quendi/gcc/include/c++/3.5-tree-ssa/backward
/usr/local/include
/esat/quendi/gcc/include
/esat/quendi/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/include
/usr/include
End of search list.
GNU C++ version 3.5-tree-ssa 20030731 (merged 20030722) (i686-pc-linux-gnu)
compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48056
t6.cpp: In constructor `b<T>::b()':
t6.cpp:2: error: `aa' undeclared (first use this function)
t6.cpp:2: error: (Each undeclared identifier is reported only once for each
function it appears in.)