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]

ICE with recent snapshots on very simple C++ code


This also occurred with 199991228.
Feel free to add the offending code to gcc's testsuite.

eg++ -v error.C
Reading specs from /usr/local/lib/gcc-lib/i386-unknown-openbsd2.6/2.96/specs
gcc version 2.96 20000103 (experimental)
 /usr/local/lib/gcc-lib/i386-unknown-openbsd2.6/2.96/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=96 -D__cplusplus -D__unix__ -D__i386__ -D__OpenBSD__ -D__unix__ -D__i386__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS error.C /var/tmp/ccqJ2267.ii
GNU CPP version 2.96 20000103 (experimental) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i386-unknown-openbsd2.6/2.96/../../../../include/g++-3
 /usr/local/include
 /usr/local/lib/gcc-lib/i386-unknown-openbsd2.6/2.96/../../../../i386-unknown-openbsd2.6/include
 /usr/local/lib/gcc-lib/i386-unknown-openbsd2.6/2.96/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/i386-unknown-openbsd2.6/2.96/cc1plus /var/tmp/ccqJ2267.ii -quiet -dumpbase error.cc -version -o /var/tmp/ccms2267.s
GNU C++ version 2.96 20000103 (experimental) (i386-unknown-openbsd2.6) compiled by GNU C version 2.96 20000103 (experimental).
error.C: In function `void a ()':
error.C:12: Internal compiler error in `convert_regs_1', at reg-stack.c:2594
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.


cat error.C ---

extern double f(double a); 

void 
a()
{
        double e;
        double value;

        if (e == 0)
            throw 1;
        value = f(e);
}

-- 
	Marc Espie		
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'

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