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]
Other format: [Raw text]

Re: c++/4934: Seg fault on legal code


Hi,

the offending code can be reduced to

template<unsigned>   struct A {};
template<typename T> struct B { A<sizeof(+int())> a; };

These two lines will crash gcc 3.0.x and gcc 3.1 20011210
on i686-pc-linux-gnu and mips-sgi-irix6.5.
Just compile with "g++ -c".

Greetings,
Volker Reichelt


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4934



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