From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20595 invoked by alias); 26 Jul 2004 03:59:13 -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 20585 invoked by uid 48); 26 Jul 2004 03:59:12 -0000 Date: Mon, 26 Jul 2004 03:59:00 -0000 Message-ID: <20040726035912.20584.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040726020028.16707.reichelt@gcc.gnu.org> References: <20040726020028.16707.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/16707] [3.4/3.5 regression] ICE with using X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg02881.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-26 03:59 ------- Confirmed. : Search converges between 2004-01-01-trunk (#437) and 2004-01-17-trunk (#438). I almost think it is this patch: 2004-01-15 Alexandre Oliva PR c++/13659 * name-lookup.c (validate_nonmember_using_decl): Take scope and name by value, instead of computing them. (do_local_using_decl, do_toplevel_using_decl): Add scope and name arguments. Pass them to validate_nonmember_using_decl. * name-lookup.h (do_local_using_decl): Adjust. (do_toplevel_using_decl): Likewise. * parser.c (cp_parser_using_declaration): Likewise. * pt.c (tsubst_expr): Likewise. as the backtrace looks like this: #0 0x4202bb8a in exit () from /lib/i686/libc.so.6 #1 0x0825b843 in diagnostic_report_diagnostic (context=0x85d9a80, diagnostic=0xbffebfd0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/diagnostic.c:288 #2 0x0825ba13 in internal_error (msgid=0x83
) at /home/gates/ pinskia/src/gnu/gcc/src/gcc/diagnostic.c:548 #3 0x0825ba4f in fancy_abort (file=0x83
, line=1108532352, function=0x83
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/diagnostic.c:594 #4 0x0813fbc2 in push_using_decl (scope=0x78d, name=0x855931b) at /home/gates/pinskia/src/ gnu/gcc/src/gcc/cp/name-lookup.c:1934 #5 0x0813fea9 in validate_nonmember_using_decl (decl=0x40104910, scope=0x4004b4a0, name=0x40105fc0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/name-lookup.c:2156 #6 0x08149c45 in do_toplevel_using_decl (decl=0x40104910, scope=0x4004b4a0, name=0x40105fc0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/name-lookup.c:3368 #7 0x080ec126 in cp_parser_using_declaration (parser=0x40105f80) at /home/gates/pinskia/src/ gnu/gcc/src/gcc/cp/parser.c:10238 #8 0x080eef9a in cp_parser_block_declaration (parser=0x40105f80, statement_p=0 '\0') at /home/ gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6896 #9 0x080ef9df in cp_parser_declaration (parser=0x40105f80) at /home/gates/pinskia/src/gnu/gcc/ src/gcc/cp/parser.c:6824 #10 0x080efd5d in cp_parser_declaration_seq_opt (parser=0x40105f80) at /home/gates/pinskia/src/ gnu/gcc/src/gcc/cp/parser.c:6718 #11 0x080eff57 in c_parse_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:2641 #12 0x0817d1f5 in c_common_parse_file (set_yydebug=131) at /home/gates/pinskia/src/gnu/gcc/ src/gcc/c-opts.c:1086 #13 0x0845dbde in toplev_main (argc=131, argv=0xbffec2b4) at /home/gates/pinskia/src/gnu/gcc/ src/gcc/toplev.c:981 #14 0x420174d9 in __libc_start_main () from /lib/i686/libc.so.6 #15 0x08049b31 in _start () and that name is no longer computed. Maybe the friendly_assert just needs to changed into a return or something like that. Oh by the way error-recovery are never critical per : Bugs with keyword "ice-on-invalid-code", where GCC emits a sensible error message before issuing an ICE (the ICE will be replaced by the message "confused by earlier errors, bailing out" in release versions) should get "minor" severity and the additional keyword "error-recovery". -- What |Removed |Added ---------------------------------------------------------------------------- CC| |aoliva at redhat dot com Severity|critical |minor Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-07-26 03:59:11 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16707