This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-1.0.3a: Bug with local classes in function templates
- To: egcs-bugs at cygnus dot com
- Subject: egcs-1.0.3a: Bug with local classes in function templates
- From: Florian Weimer <fw at cygnus dot stuttgart dot netsurf dot de>
- Date: 07 Jun 1998 16:29:05 +0200
Hi!
Defining a local class inside a function template doesn't work. I've
got a glibc-2.0.7 based system running Linux 2.1.101 (x86).
Florian
----------------------------------------------------------------------
[fw@deneb fw]$ egcc -v
Reading specs from /opt/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
[fw@deneb fw]$ cat bug.cc
template <class T>
void foo(T)
{
struct bar {
bar();
};
}
[fw@deneb fw]$ egcc -c bug.cc
bug.cc: In function `void foo(T)':
bug.cc:4: Internal compiler error.
bug.cc:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.
[fw@deneb fw]$