This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Regression of egcs-2.91.47 19980712
- To: egcs-bugs at cygnus dot com
- Subject: Regression of egcs-2.91.47 19980712
- From: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Date: Thu, 30 Jul 1998 18:34:23 +0200 (CEST)
- Cc: egcs at cygnus dot com (egcs at cygnus dot com)
This worked with egcs-2.91.45 19980702 (date: Thu Jul 2 13:35:04 UTC 1998)
but is broken with egcs-2.91.47 19980712 (date: Sun Jul 12 12:45:37 UTC 1998)
template <class T> struct B { void f() {}; };
class C {};
struct A : B<C> { void f() {}; };
int main() {
A a;
typedef B<C> BC;
a.BC::f(); // This still works
a.B<C>::f(); // This not anymore
}
The "typedef" is just to show that it (still) works with a typedef :)
~/tmp>g++ -v foo.cc
Reading specs from /usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.52/specs
gcc version egcs-2.91.52 19980728 (gcc2 ss-980609 experimental)
/usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.52/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ foo.cc /tmp/ccucBi89.ii
GNU CPP version egcs-2.91.52 19980728 (gcc2 ss-980609 experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/egcs-cvs/include/g++-2
/usr/local/include
/usr/local/egcs-cvs/i686-pc-linux-gnu/include
/usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.52/include
/usr/include
End of search list.
/usr/local/egcs-cvs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.52/cc1plus /tmp/ccucBi89.ii -quiet -dumpbase foo.cc -version -o /tmp/cc8EUg1b.s
GNU C++ version egcs-2.91.52 19980728 (gcc2 ss-980609 experimental) (i686-pc-linux-gnu) compiled by GNU C version egcs-2.91.52 19980728 (gcc2 ss-980609 experimental).
foo.cc: In function `int main()':
foo.cc:8: warning: invalid use of type decl `struct B<C>' as expression
foo.cc:8: parse error before `>'
--
Carlo Wood <carlo@runaway.xs4all.nl>