This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

less important bug



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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]