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

* [Bug c/23223] Segfault part 3, after typedef
  2005-08-04  3:26 [Bug c/23223] New: Segfault part 3, after typedef flash at pobox dot com
@ 2005-08-04  3:28 ` 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
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: flash at pobox dot com @ 2005-08-04  3:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From flash at pobox dot com  2005-08-04 03:28 -------
Created an attachment (id=9426)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9426&action=view)
105393_segfault_CertMgrDispatcher_min.i

PalmSource bug 105393.

-- 


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


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

* [Bug c++/23223] [4.0/4.1 Regression] Segfault part 3, after typedef
  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 ` pinskia at gcc dot gnu dot org
  2005-08-04  4:22 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-04  3:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-04 03:33 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |c++
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |4.0.0 4.1.0
      Known to work|                            |3.4.0
            Summary|Segfault part 3, after      |[4.0/4.1 Regression]
                   |typedef                     |Segfault part 3, after
                   |                            |typedef
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/23223] [4.0/4.1 Regression] Segfault part 3, after typedef
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-04  4:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-04 04:22 -------
I said confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-04 04:22:33
               date|                            |


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


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

* [Bug c++/23223] [4.0/4.1 Regression] Segfault part 3, after typedef
  2005-08-04  3:26 [Bug c/23223] New: Segfault part 3, after typedef flash at pobox dot com
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-08 18:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-08 18:29 -------
: Search converges between 2004-10-20-014001-trunk (#600) and 2004-10-20-161001-trunk 
(#601).



-- 


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


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

* [Bug c++/23223] [4.0/4.1 Regression] Segfault part 3, after typedef
  2005-08-04  3:26 [Bug c/23223] New: Segfault part 3, after typedef flash at pobox dot com
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10  5:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 05:24 -------
Backtrace:
#0  0x90000918 in strcmp ()
#1  0x004470bc in annotate_with_file_line (node=0x42cffaa0, file=0x0, line=0) at /Users/pinskia/src/
ns/gcc/gcc/tree.c:3115
#2  0x00447674 in annotate_with_locus (node=0x42cffaa0, locus={file = 0x0, line = 0}) at /Users/
pinskia/src/ns/gcc/gcc/tree.c:3146
#3  0x0013a218 in cp_parser_statement (parser=0x42d00840, in_statement_expr=0x0) at /Users/
pinskia/src/ns/gcc/gcc/cp/parser.c:6119
#4  0x0013b2f0 in cp_parser_implicitly_scoped_statement (parser=0x42d00840) at /Users/pinskia/
src/ns/gcc/gcc/cp/parser.c:6791
#5  0x0013a7e0 in cp_parser_selection_statement (parser=0x42d00840) at /Users/pinskia/src/ns/
gcc/gcc/cp/parser.c:6352
#6  0x0013a064 in cp_parser_statement (parser=0x42d00840, in_statement_expr=0x0) at /Users/
pinskia/src/ns/gcc/gcc/cp/parser.c:6044
#7  0x0013a690 in cp_parser_statement_seq_opt (parser=0x42d00840, in_statement_expr=0x0) at /
Users/pinskia/src/ns/gcc/gcc/cp/parser.c:6294
#8  0x0013a5e8 in cp_parser_compound_statement (parser=0x42d00840, in_statement_expr=0x0, 
in_try=0 '\0') at /Users/pinskia/src/ns/gcc/gcc/cp/parser.c:6267
#9  0x001449a0 in cp_parser_function_body (parser=0x42d00840) at /Users/pinskia/src/ns/gcc/gcc/
cp/parser.c:12217
#10 0x001449f0 in cp_parser_ctor_initializer_opt_and_function_body (parser=0x42d00840) at /Users/
pinskia/src/ns/gcc/gcc/cp/parser.c:12234
#11 0x0014b478 in cp_parser_function_definition_after_declarator (parser=0x42d00840, inline_p=0 
'\0') at /Users/pinskia/src/ns/gcc/gcc/cp/parser.c:15097


-- 


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


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

* [Bug c++/23223] [4.0/4.1 Regression] Segfault part 3, after typedef
  2005-08-04  3:26 [Bug c/23223] New: Segfault part 3, after typedef flash at pobox dot com
                   ` (4 preceding siblings ...)
  2005-09-10  5:24 ` pinskia at gcc dot gnu dot org
@ 2005-09-10  5:28 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10  5:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 05:27 -------


*** This bug has been marked as a duplicate of 23440 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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).