internal compiler error
Don McFarland
dmcfarland1@home.com
Tue Feb 1 15:03:00 GMT 2000
Dear Sirs --
(I apologize for incomplete description; I must manually
transcribe this info.)
PLATFORM: Sun Ultra60/Solaris2.7
GCC: 2.95.2, compiled on the Ultra60 using default configure (32-bit)
CODE:
class B {};
class A {
public:
A(){}
A(B){}
operator B() { return B(); }
A(A&){}
};
A func(){ return A(); } // "line 12"
int main(){}
COMPILE LINE: g++ -o foo foo.C -Wall
RESULT:
foo.C: In function `class A func()':
foo.C:12: Internal compiler error in `emit_move_insn_1', at expr.c:2754
Please submit ...
BACKGROUND:
A variation of this code was mentioned in c++-moderated wrt implicit
conversions in initialization; perhaps the error has something to do
with the fact that old versions of gcc were sometimes inclined to use
two user conversions (e.g., operator B() and A(B)) in a single
implicit conversion.
Please let me know if further info is essential.
-- Don
More information about the Gcc-bugs
mailing list