public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23223] New: Segfault part 3, after typedef
@ 2005-08-04  3:26 flash at pobox dot com
  2005-08-04  3:28 ` [Bug c/23223] " flash at pobox dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: flash at pobox dot com @ 2005-08-04  3:26 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3281 bytes --]

The following code causes a segfault:

typedef int32_t (*ProcPtr)();
void Dispatcher(int32_t startCode)
{
  if (rcvArgs.bytesReceived <


This doesn't look to me like either bug 22604 or 23118.  It's a Delta-reduction from a file for a 
different bug (internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) 
in build_pointer_type_for_mode, at tree.c:4246) which I'm still working on.

Here's the session:

251> /opt/gcc401chk/bin/g++ -v  ../cpp/bugfiles/GCC_bugfiles/error/
105393_segfault_CertMgrDispatcher_min.i
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+
+
Thread model: posix
gcc version 4.0.1
 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/
GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i -quiet -dumpbase 
105393_segfault_CertMgrDispatcher_min.i -mtune=pentiumpro -auxbase 
105393_segfault_CertMgrDispatcher_min -version -o /tmp/cc7GwodY.s
GNU C++ version 4.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.4 (pre 3.3.5 20040809).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: ISO C++ 
forbids declaration of ‘int32_t’ with no type
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: typedef 
‘int32_t’ is initialized (use __typeof__ instead)
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: ‘ProcPtr’ was 
not declared in this scope
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: expected ‘,’ or 
‘;’ before ‘(’ token
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i: In function ‘void 
Dispatcher(int32_t)’:
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: ‘rcvArgs’ was 
not declared in this scope
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected 
primary-expression at end of input
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected `)' at 
end of input
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected 
primary-expression at end of input
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected `;' at 
end of input
../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: internal compiler 
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: Segfault part 3, after typedef
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: flash at pobox dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23223


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-10  5:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-04  3:26 [Bug c/23223] New: Segfault part 3, after typedef flash at pobox dot com
2005-08-04  3:28 ` [Bug c/23223] " flash at pobox dot com
2005-08-04  3:33 ` [Bug c++/23223] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-04  4:22 ` pinskia at gcc dot gnu dot org
2005-08-08 18:29 ` pinskia at gcc dot gnu dot org
2005-09-10  5:24 ` pinskia at gcc dot gnu dot org
2005-09-10  5:28 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).