volatile undefined II

Erik Thiele erikyyy@erikyyy.de
Sun May 7 23:14:00 GMT 2000

my first report "volatile undefined" was incomplete.
sorry about that.
forget all - restart & sorry for inconveniences :)

tudinc_server.C is attached.

if you compile it like this, everything is ok, no messages.
g++ -c -O0 -Wall -Werror tudinc_server.C

but if you compile it like this, you will get message:
g++ -v --save-temps -c -O2 -Wall -Werror tudinc_server.C

////// snip
tudinc_server.C: In method `server_kettetype<servermsg_zeigerelemtype>::server_kettetype(int)':
tudinc_server.C:21:   instantiated from here
tudinc_server.C:12: `volatile' undeclared (first use this function)
tudinc_server.C:12: (Each undeclared identifier is reported only once
tudinc_server.C:12: for each function it appears in.)
cc1plus: warnings being treated as errors
tudinc_server.C:12: warning:  qualifier ignored on asm
////// snap

you will also get a .ii and a .s file, which are also attached.

hope this helps.


Name:  Erik Thiele                                       \\\\
Email: erikyyy@erikyyy.de                                o `QQ'_
IRC:   erikyyy                                            /   __8
WWW:   http://www.erikyyy.de/                             '  `

More information about the Gcc-bugs mailing list