BUG: gcc version 2.95.2 19991024 (release)

Ronald Brand ron@pad.incases.com
Fri Sep 29 03:17:00 GMT 2000


OS, Machine
    SunOS 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-1

Compiler
    gcc version 2.95.2 19991024 (release)

Command:
    g++ -c -g -Wall gccbug.cpp

Error Message
    gccbug.cpp: In function `int main(int, char **)':
    gccbug.cpp:13: Internal compiler error in `emit_move_insn', at
expr.c:2593
    Please submit a full bug report.

Comment
    It does not matter, whether stdlib is included or not - error
remains the same.
    If instead of structtype 'SRect' the type 'int' is used, I get a
correct error message,
    that the types (int <->int*) do not match.


Source:
------------------------------------------
#include <stdlib.h>

typedef struct
{
  short          x, y;
  unsigned short w, h;
} SRect;



int main( int argc, char* argv[ ] )
{
  static SRect p_rect = (SRect*) calloc( 10, sizeof( SRect ) );

  // Yes - of course this should be declared as
  //       'static SRect* p_rect',
  //       but it was just a typing error!


  return 0;
}
-------------------------------------------


--
            ZUKEN GmbH   *   EMC Technology Center
Vattmannstr. 3     *      D-33100 Paderborn      *     Germany
Ronald Brand * Phone: +49-5251-150-625 * Fax: +49-5251-150-700
mailto:ron@pad.incases.com        *       http://www.zuken.com





More information about the Gcc-bugs mailing list