warning: sorry: semantics of inline ....
Dr. Joern v. Holten
jvh@megatel.de
Wed Dec 23 06:43:00 GMT 1998
Here's another one:
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
a.cpp: In method `void T::f()':
a.cpp:4: warning: sorry: semantics of inline function static data `int
i' are wrong (you'll wind up with multiple copies)
a.cpp:4: Internal compiler error.
a.cpp:
class T {
public:
void f() {
static int i = 20;
}
};
main(){}
--
_____
| | Dr. Jörn von Holten
| `.__ megatel Informations- und Kommunikationssysteme GmbH
| | Wiener Str. 3 * 28359 Bremen * Germany
| megatel | Phone: +49 421 22095-0 * Fax: +49 421 22095-16
`---------' eMail: jvh@innocent.com * http://www.megatel.de
Truth of the day: It's trivial to make fun of Microsoft products,
but it takes a real man to make them work, and a god to make them
do anything useful. Managers, not engineers, rule the world.
More information about the Gcc-bugs
mailing list