2 // { dg-options "-O -Wall -fgcse" }
3 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
4 // Reported against EGCS snaps 98/06/28.
6 // Compilation of this program with the flags g++ -Wall -O -fgcse
7 // or -O2 produces spurious warnings in the standard
8 // header <std/bastring.h>.
10 // They vanish if the declaration of a::b is taken out.
26 baz += foo() + foo() + "foo";