From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12678 invoked by alias); 2 Dec 2003 15:51:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12671 invoked by uid 48); 2 Dec 2003 15:51:20 -0000 Date: Tue, 02 Dec 2003 15:51:00 -0000 Message-ID: <20031202155120.12669.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031202062909.13268.fw@deneb.enyo.de> References: <20031202062909.13268.fw@deneb.enyo.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13268] ICE on illegal code: bool foo(const operator&); X-Bugzilla-Reason: CC X-SW-Source: 2003-12/txt/msg00281.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-02 15:51 ------- Program received signal EXC_BAD_ACCESS, Could not access memory. grokdeclarator (declarator=0x4187cec0, declspecs=0x4187b0f0, decl_context=NORMAL, initialized=0, attrlist=0xbffff964) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/ cp/decl.c:8608 8608 if (VOID_TYPE_P (type)) (gdb) bt #0 grokdeclarator (declarator=0x4187cec0, declspecs=0x4187b0f0, decl_context=NORMAL, initialized=0, attrlist=0xbffff964) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/ cp/decl.c:8608 #1 0x00019c8c in start_decl (declarator=0x0, declspecs=0x0, initialized=0, attributes=0x0, prefix_attributes=0x453c94) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/ decl.c:3651 #2 0x00019c8c in start_decl (declarator=0x0, declspecs=0x0, initialized=0, attributes=0x0, prefix_attributes=0x453c94) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/ decl.c:3651 #3 0x0005b738 in cp_parser_init_declarator (parser=0x0, decl_specifiers=0x0, prefix_attributes=0x4187cec0, function_definition_allowed_p=4537492, member_p=1099411696, declares_class_or_enum=0, function_definition_p=0x453c94) at /Volumes/UFS_Partition/pinskia/ src/fsf/gcc-clean/src/gcc/cp/parser.c:9579 #4 0x0005ba84 in cp_parser_simple_declaration (parser=0x0, function_definition_allowed_p=false) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/ gcc/cp/parser.c:6246 #5 0x0005bc70 in cp_parser_block_declaration (parser=0x4187acb0, statement_p=false) at / Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:6162 #6 0x0005c8f0 in cp_parser_declaration (parser=0x4187acb0) at /Volumes/UFS_Partition/ pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:6082 #7 0x0005cbf8 in cp_parser_declaration_seq_opt (parser=0x4187acb0) at /Volumes/ UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:5991 #8 0x0005cdc0 in c_parse_file () at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/ cp/parser.c:2195 #9 0x000bbec8 in c_common_parse_file (set_yydebug=1090264352) at /Volumes/UFS_Partition/ pinskia/src/fsf/gcc-clean/src/gcc/c-opts.c:1227 p #10 0x0031e7ac in toplev_main (argc=4588092, argv=0x1) at /Volumes/UFS_Partition/pinskia/ src/fsf/gcc-clean/src/gcc/toplev.c:1808 #11 0x00001d10 in _start (argc=14, argv=0xbffffd70, envp=0xbffffdac) at /SourceCache/Csu/ Csu-46/crt.c:267 #12 0x00001b84 in start () (gdb) p type $1 = 0x40fb68c0 (gdb) p type $2 = 0x40fb68c0 (gdb) p debug_tree(type) constant 32> unit size constant 4> align 32 symtab 0 alias set -1 precision 1 min max > $3 = void (gdb) l 8603 8604 if (attrs) 8605 cplus_decl_attributes (&decl, attrs, 0); 8606 8607 type = TREE_TYPE (decl); 8608 if (VOID_TYPE_P (type)) 8609 { 8610 if (same_type_p (type, void_type_node) 8611 && !DECL_NAME (decl) && !result && !chain && !ellipsis) 8612 /* this is a parmlist of `(void)', which is ok. */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13268