Internal Compiler Error - typeid() of unknown type
Philippe Bouchard
philippeb@corel.com
Tue Jan 9 11:48:00 GMT 2001
The following program:
#include <typeinfo>
char foo(char, char)
{
}
long foo(char, long)
{
}
int main()
{
typeid(typeof(::foo));
}
Reports:
/home/philippeb/devel/tests/typeid.cpp: In function `const class
type_info & __tf?()':
/home/philippeb/devel/tests/typeid.cpp:14: Internal compiler error 252.
/home/philippeb/devel/tests/typeid.cpp:14: Please submit a full bug report.
/home/philippeb/devel/tests/typeid.cpp:14: See
<URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
Under:
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
Thank you.
--
Philippe A. Bouchard
Corel Linux
More information about the Gcc-bugs
mailing list