This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13268] ICE on illegal code: bool foo(const operator&);


------- 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)
 <boolean_type 0x40fb68c0 bool unsigned SI
    size <integer_cst 0x40fb4300 type <integer_type 0x40fc1af0 bit_size_type> constant 32>
    unit size <integer_cst 0x40fb43a8 type <integer_type 0x40fc1a80 long unsigned int> constant 
4>
    align 32 symtab 0 alias set -1 precision 1 min <integer_cst 0x40fb4588 0> max <integer_cst 
0x40fb45d0 1>>
$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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]