This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-1.0.3a: Bug with local classes in function templates


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]$ 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]