g++ 2.95.2: inlining of operator<< causes SIGSEGV with -O1

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun Dec 12 09:04:00 GMT 1999


> this programm causes a SIGSEGV after compiled with g++ -O1 (g++ version
> 2.95.2).

Hallo Uli,

Thanks for your bug report. It's not a bug in g++, but one in your
program.

> inline ostream& operator<<(ostream& o, const A& a) { o << "A"; }

Shouldn't this operator *return* something?

Ciao,
Martin


More information about the Gcc-bugs mailing list