/* g++ -c bug.cpp occurs with 2.95.2 and 2.95.3 */ struct EmptyClass {}; template OS& operator<<(OS &os,const char *s) {return os;} struct StrO { template StrO(const S &str) {} }; template inline S& operator<<(S &os,const StrO &s) {return os;} template struct PadStream { PadStream& get() {return *this;} }; template struct ExprParse { void run() { PadStream ps; ps.get() << "abcdefg"; } }; void some_function() { ExprParse parse; parse.run(); } inline void bug_occurs_here() { char a[8]; }