public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tbm at cyrius dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/31372]  New: [4.3 Regression] Segfault in cp/parser.c: cp_parser_parameter_declaration
Date: Tue, 27 Mar 2007 09:54:00 -0000	[thread overview]
Message-ID: <bug-31372-12387@http.gcc.gnu.org/bugzilla/> (raw)

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

The following segfault happens with 4.3 SVN 20070318 and 
20070326, works with 20070303.

(sid)4967:tbm@coconut: ~] /usr/lib/gcc-snapshot/bin/g++
democracyplayer-fasttypes.cc
democracyplayer-fasttypes.cc:2: 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.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
zsh: exit 1     /usr/lib/gcc-snapshot/bin/g++ democracyplayer-fasttypes.cc
(sid)4968:tbm@coconut: ~] cat democracyplayer-fasttypes.cc

template < class U >
  void foo (U (*), long ...)
  {
  }




Program received signal SIGSEGV, Segmentation fault.
cp_parser_parameter_declaration (parser=0x2b3a15801730, template_parm_p=0 '\0',
    parenthesized_p=0x7fff959c8227 "") at
/home/tbm/scratch/gcc/gcc/cp/parser.c:12934
12934         if (DECL_P (type))
(gdb) where
#0  cp_parser_parameter_declaration (parser=0x2b3a15801730, template_parm_p=0
'\0',
    parenthesized_p=0x7fff959c8227 "") at
/home/tbm/scratch/gcc/gcc/cp/parser.c:12934
#1  0x00000000004c1c88 in cp_parser_parameter_declaration_clause
(parser=0x2b3a15801730)
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:12740
#2  0x00000000004c232b in cp_parser_declarator (parser=0x2b3a15801730,
    dcl_kind=CP_PARSER_DECLARATOR_NAMED, ctor_dtor_or_conv_p=0x7fff959c8360,
    parenthesized_p=<value optimized out>, member_p=0 '\0')
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:11967
#3  0x00000000004c77ab in cp_parser_init_declarator (parser=0x2b3a15801730,
    decl_specifiers=0x7fff959c83c0, checks=0x0, function_definition_allowed_p=1
'\001',
    member_p=1 '\001', declares_class_or_enum=0,
function_definition_p=0x7fff959c841f "")
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:11476
#4  0x00000000004c939c in cp_parser_single_declaration (parser=0x2b3a15801730,
checks=0x0,
    member_p=1 '\001', friend_p=<value optimized out>) at
/home/tbm/scratch/gcc/gcc/cp/parser.c:16375
#5  0x00000000004c962e in cp_parser_template_declaration_after_export
(parser=0x2b3a15801730,
    member_p=208 'â–’') at /home/tbm/scratch/gcc/gcc/cp/parser.c:16234
#6  0x00000000004b30e9 in cp_parser_member_declaration (parser=0x2b3a15801730)
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:14206
#7  0x00000000004b44d2 in cp_parser_type_specifier (parser=0x2b3a15801730,
    flags=<value optimized out>, decl_specs=0x7fff959c86a0, is_declaration=1
'\001',
    declares_class_or_enum=0x7fff959c8640, is_cv_qualifier=<value optimized
out>)
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:14137
#8  0x00000000004bdc3a in cp_parser_decl_specifier_seq (parser=0x2b3a15801730,
    flags=CP_PARSER_FLAGS_OPTIONAL, decl_specs=0x7fff959c86a0,
declares_class_or_enum=0x7fff959c86f8)
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:7827
#9  0x00000000004c91f3 in cp_parser_single_declaration (parser=0x2b3a15801730,
checks=0x0,
    member_p=0 '\0', friend_p=0x7fff959c8757 "") at
/home/tbm/scratch/gcc/gcc/cp/parser.c:16319
#10 0x00000000004c962e in cp_parser_template_declaration_after_export
(parser=0x2b3a15801730,
    member_p=208 'â–’') at /home/tbm/scratch/gcc/gcc/cp/parser.c:16234
#11 0x00000000004caf0a in cp_parser_declaration (parser=0x2b3a15801730)
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:7370
#12 0x00000000004ca646 in cp_parser_declaration_seq_opt (parser=0x2b3a15801730)
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:7293
#13 0x00000000004cae8d in cp_parser_declaration (parser=0x2b3a15801730)
    at /home/tbm/scratch/gcc/gcc/cp/parser.c:11028


-- 
           Summary: [4.3 Regression] Segfault in cp/parser.c:
                    cp_parser_parameter_declaration
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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


             reply	other threads:[~2007-03-27  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-27  9:54 tbm at cyrius dot com [this message]
2007-03-27  9:55 ` [Bug c++/31372] " tbm at cyrius dot com
2007-03-27 14:10 ` doug dot gregor at gmail dot com
2007-03-27 14:18 ` tbm at gcc dot gnu dot org
2007-03-27 14:44 ` tbm at cyrius dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31372-12387@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).