This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error when deriving class from std::unary_function
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Internal compiler error when deriving class from std::unary_function
- From: Krzysztof Jędruczyk <beaker at hot dot pl>
- Date: Wed, 29 Aug 2001 22:03:18 +0200
Following simple code causes internal compiler error. Tested on Cygwin gcc
2.95.3-5 and linux gcc 2.95.2 (binary package from Trustix Linux 1.2).
-------------------- sample code -------------------------
#include <functional>
struct Test : public std::unary_function {
};
------------------ end of sample code --------------------
Cygwin system:
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)
Command line causing trouble:
$ gcc -c bug.cpp
bug.cpp:3: Internal compiler error.
bug.cpp:3: Please submit a full bug report.
bug.cpp:3: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.
Linux system
Linux system:
beaker@frigate ~/cbug$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-trustix-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Command line:
beaker@frigate ~/cbug$ gcc -c bug.cpp
bug.cpp:3: Internal compiler error.
bug.cpp:3: Please submit a full bug report.
bug.cpp:3: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.
------------------preprocessed file generated
with -save-temps ------------------
# 1 "bug.cpp"
# 1 "/usr/include/g++-3/functional" 1 3
# 1 "/usr/include/g++-3/stl_config.h" 1 3
-------------end of preprocessed file generated
with -save-temps ------------------
Best Regards,
beaker