Menu

#416 Segmentation faults when using incomplete types

closed-fixed
gcc (462)
2003-11-24
2003-09-04
No

The fault occurs when referencing a function declared
as __fastcall or __stdcall that has a parameter of
incomplete type. It does not occur when the function
is declared as __cdecl. Details:

plantation$ g++ -o nul -c test.cc
test.cc: In function `void caller()':
test.cc:7: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
plantation$ cat test.cc
typedef struct type_t type_t;

extern void __fastcall func(type_t);

void caller(void)
{
func(0);
}
plantation$ msysinfo
msysinfo-1.3: Send this to the MSYS support list:

MSYS 1.0.9(0.46/3/2) 2003-07-03 07:26 i686 unknown;
targ=MINGW32
GNU bash, version 2.04.0(1)-release (i686-pc-msys);
ENV=.profile
GNU Make version 3.79.1,Built for i686-pc-msys; MAKE_MODE=
gcc.exe (GCC) 3.2.3 (mingw special 20030504-1);
targ=MINGW32
GNU ld version 2.14.90 20030612
789320 Thu Jul 10 03:56:48 2003 /bin/msys-1.0.dll
135680 Thu Jul 10 03:56:46 2003 /bin/make.exe
82432 Mon May 05 03:38:20 2003 /mingw/bin/gcc.exe
615424 Thu Jun 12 10:56:20 2003 /mingw/bin/ld.exe
HOME=/home
Sysname=MINGW32_NT-5.0 OSTYPE=msys TERM=cygwin

Discussion

  • Danny Smith

    Danny Smith - 2003-11-24
    • status: open --> closed-fixed
     
  • Danny Smith

    Danny Smith - 2003-11-24

    Logged In: YES
    user_id=11494

    This is fixed in gcc CVS.
    Danny