This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.0.3a: Bug with local classes in function templates
Alexandre Oliva <oliva@dcc.unicamp.br> writes:
> Florian Weimer <fw@cygnus.stuttgart.netsurf.de> writes:
>
> > template <class T> void foo(T) { struct bar { bar(); }; }
>
> > bug.cc:4: Internal compiler error.
>
> This problem is fixed in the latest development snapshot.
Dear Alexandre,
thank you for your quick answer.
Next try: ;)
----------------------------------------------------------------------
[fw@deneb /tmp]$ uname -a
Linux deneb.cygnus.stuttgart.netsurf.de 2.1.101 [...] i686 unknown
[fw@deneb /tmp]$ eg++ --version
egcs-2.90.29 980515 (egcs-1.0.3 release)
[fw@deneb /tmp]$ cat bug.cc
#include <vector>
main () {
vector<int&> vec;
int i = 1;
vec.push_back(i);
}
[fw@deneb /tmp]$ eg++ bug.cc
/opt/egcs-1.0.3a/include/g++/stl_vector.h: In method `void vector<int &,__default_alloc_template<true,0> >::push_back(int &const &)':
/opt/egcs-1.0.3a/include/g++/stl_vector.h:146: Internal compiler error 364.
/opt/egcs-1.0.3a/include/g++/stl_vector.h:146: Please submit a full bug report to `egcs-bugs@cygnus.com'.
[fw@deneb /tmp]$