This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
less important bug
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: less important bug
- From: Martin Schindelin <de25sdn at de dot ms dot philips dot com>
- Date: Mon, 22 Nov 1999 15:22:17 +0100 (MET)
- Reply-To: Martin Schindelin <de25sdn at de dot ms dot philips dot com>
trying to compile the following lines:
std::ofstream DestFile("testt.cc.backup", ios::trunc | ios::out);
DestFile.write(pcBuffer, iSize);
DestFile.io_state;
I got the following message. Do not ask me if it makes sense to write such
lines.
g++ checkWrite.cc
checkWrite.cc: In function `int main()':
checkWrite.cc:45: warning: invalid use of type decl `enum ios::io_state' as
expression
checkWrite.cc:45: Internal compiler error 40.
checkWrite.cc:45: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
checkWrite.cc:45: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
> g++ -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)