public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using'
@ 2005-01-10 21:39 gcc-bugzilla at gcc dot gnu dot org
2005-01-10 21:56 ` [Bug debug/19367] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 14+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2005-01-10 21:39 UTC (permalink / raw)
To: gcc-bugs
g++ dies with a tree check ICE when the source below is compiled with -g:
$ cc1plus -g x.cc
void foo()
x.cc:6: internal compiler error: tree check: expected class 'declaration', have 'exceptional' (@@dummy) in lookup_decl_die, at dwarf2out.c:5415
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$
Environment:
System: Linux karma 2.6.8.1 #20 Mon Sep 13 23:48:47 EDT 2004 i686 i686 i386 GNU/Linux
Architecture: i686
<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/sss/gcc/gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f95
How-To-Repeat:
Compile with -g:
----------------------------------------
int toupper (int);
namespace std { using ::toupper; }
void foo()
{
using std::toupper;
}
----------------------------------------
------- Additional Comments From snyder at fnal dot gov 2005-01-10 21:39 -------
Fix:
<how to correct or work around the problem, if known (multiple lines)>
--
Summary: 4.0: ICE: tree_check in lookup_local_die with local
`using'
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: snyder at fnal dot gov
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=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug debug/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
@ 2005-01-10 21:56 ` pinskia at gcc dot gnu dot org
2005-01-10 22:55 ` Daniel Berlin
2005-01-10 22:55 ` dberlin at dberlin dot org
` (10 subsequent siblings)
11 siblings, 1 reply; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-10 21:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-10 21:56 -------
Confirmed, I think this is the boost ICE.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c++ |debug
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Priority|P2 |P1
Last reconfirmed|0000-00-00 00:00:00 |2005-01-10 21:56:54
date| |
Summary|4.0: ICE: tree_check in |[4.0 Regression] ICE:
|lookup_local_die with local |tree_check in
|`using' |lookup_local_die with local
| |`using'
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Bug debug/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:56 ` [Bug debug/19367] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-01-10 22:55 ` Daniel Berlin
0 siblings, 0 replies; 14+ messages in thread
From: Daniel Berlin @ 2005-01-10 22:55 UTC (permalink / raw)
To: pinskia at gcc dot gnu dot org; +Cc: gcc-bugs
On Mon, 10 Jan 2005, pinskia at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-10 21:56 -------
> Confirmed, I think this is the boost ICE.
>
This happens because the orig_decl that we are trying to use in emitting
the using decl info appears to have been trashed or garbage collected
before we emit it.
I think i know why.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug debug/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
2005-01-10 21:56 ` [Bug debug/19367] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-01-10 22:55 ` dberlin at dberlin dot org
2005-01-11 0:53 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: dberlin at dberlin dot org @ 2005-01-10 22:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dberlin at gcc dot gnu dot org 2005-01-10 22:55 -------
Subject: Re: [4.0 Regression] ICE: tree_check in lookup_local_die
with local `using'
On Mon, 10 Jan 2005, pinskia at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-10 21:56 -------
> Confirmed, I think this is the boost ICE.
>
This happens because the orig_decl that we are trying to use in emitting
the using decl info appears to have been trashed or garbage collected
before we emit it.
I think i know why.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug debug/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
2005-01-10 21:56 ` [Bug debug/19367] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-10 22:55 ` dberlin at dberlin dot org
@ 2005-01-11 0:53 ` pinskia at gcc dot gnu dot org
2005-01-11 1:32 ` giovannibajo at libero dot it
` (8 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 0:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-11 00:53 -------
The ICE was introduced with:
* decl.c (duplicate_decls): Call ggc_free on declarations we will
not be needing any longer.
But it looks like reverting it might be papering over the overall problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug debug/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-01-11 0:53 ` pinskia at gcc dot gnu dot org
@ 2005-01-11 1:32 ` giovannibajo at libero dot it
2005-01-11 1:36 ` [Bug c++/19367] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: giovannibajo at libero dot it @ 2005-01-11 1:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-01-11 01:32 -------
For the log, this is blocking utility/assert_test and
utility/current_function_test in Boost.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-01-11 1:32 ` giovannibajo at libero dot it
@ 2005-01-11 1:36 ` pinskia at gcc dot gnu dot org
2005-01-11 1:42 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 1:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-11 01:36 -------
Something is really wrong here.
If we take the following TU:
void abort (void);
namespace std { using ::abort; }
void foo()
{
using std::abort;
abort();
}
We output a call to std::abort which does not exist at all. Why are we doing that.
I think this is what is causing us to ICE in the first place.
With 3.4.0 and 3.3.x, we get a call to extern "C" abort which seems right but I think it is wrong still.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org, mmitchel at gcc dot gnu
| |dot org
Component|debug |c++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-01-11 1:36 ` [Bug c++/19367] " pinskia at gcc dot gnu dot org
@ 2005-01-11 1:42 ` pinskia at gcc dot gnu dot org
2005-01-19 18:41 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 1:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-11 01:42 -------
(In reply to comment #6)
One more note here, the mangling change happened between 20040620 and 20040622.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-01-11 1:42 ` pinskia at gcc dot gnu dot org
@ 2005-01-19 18:41 ` pinskia at gcc dot gnu dot org
2005-01-25 16:11 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-19 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-19 18:41 -------
*** Bug 19536 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |micis at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-01-19 18:41 ` pinskia at gcc dot gnu dot org
@ 2005-01-25 16:11 ` pinskia at gcc dot gnu dot org
2005-01-31 2:11 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-25 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 16:10 -------
*** Bug 19622 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan at etpmod dot phys dot
| |tue dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-01-25 16:11 ` pinskia at gcc dot gnu dot org
@ 2005-01-31 2:11 ` mmitchel at gcc dot gnu dot org
2005-01-31 4:08 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-01-31 2:11 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-01-31 2:11 ` mmitchel at gcc dot gnu dot org
@ 2005-01-31 4:08 ` cvs-commit at gcc dot gnu dot org
2005-01-31 4:13 ` mmitchel at gcc dot gnu dot org
2005-02-28 15:16 ` cvs-commit at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-31 4:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-31 04:07 -------
Subject: Bug 19367
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-01-31 04:07:41
Modified files:
gcc/cp : ChangeLog decl.c name-lookup.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: error24.C
gcc/testsuite/g++.dg/lookup: builtin1.C
Log message:
PR c++/19395
* decl.c (grokdeclarator): Refactor code so that qualified names
are never allowed as the declarator in a typedef.
PR c++/19367
* name-lookup.c (do_nonmember_using_decl): Avoid overloading
builtin declarations.
PR c++/19395
* g++.dg/parse/error24.C: New test.
PR c++/19367
* g++.dg/lookup/builtin1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4602&r2=1.4603
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1355&r2=1.1356
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.107&r2=1.108
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4960&r2=1.4961
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/error24.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/builtin1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (9 preceding siblings ...)
2005-01-31 4:08 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-31 4:13 ` mmitchel at gcc dot gnu dot org
2005-02-28 15:16 ` cvs-commit at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-01-31 4:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-01-31 04:13 -------
Fixed in GCC 4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
` (10 preceding siblings ...)
2005-01-31 4:13 ` mmitchel at gcc dot gnu dot org
@ 2005-02-28 15:16 ` cvs-commit at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-28 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-28 08:27 -------
Subject: Bug 19367
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-rhl-branch
Changes by: jakub@gcc.gnu.org 2005-02-28 08:26:41
Modified files:
gcc/cp : ChangeLog
gcc/testsuite : ChangeLog
gcc/cp : name-lookup.c
Added files:
gcc/testsuite/g++.dg/lookup: builtin1.C builtin2.C
Log message:
PR c++/18838
2005-01-30 Mark Mitchell <mark@codesourcery.com>
PR c++/19367
* name-lookup.c (do_nonmember_using_decl): Avoid overloading
builtin declarations.
PR c++/18838
* g++.dg/lookup/builtin2.C: New test.
2005-01-30 Mark Mitchell <mark@codesourcery.com>
PR c++/19367
* g++.dg/lookup/builtin1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.3892.2.99.2.24&r2=1.3892.2.99.2.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.3389.2.170.2.45&r2=1.3389.2.170.2.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.34.2.11.2.8&r2=1.34.2.11.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/builtin1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=NONE&r2=1.1.18.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/builtin2.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19367
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-02-28 8:27 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-10 21:39 [Bug c++/19367] New: 4.0: ICE: tree_check in lookup_local_die with local `using' gcc-bugzilla at gcc dot gnu dot org
2005-01-10 21:56 ` [Bug debug/19367] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-10 22:55 ` Daniel Berlin
2005-01-10 22:55 ` dberlin at dberlin dot org
2005-01-11 0:53 ` pinskia at gcc dot gnu dot org
2005-01-11 1:32 ` giovannibajo at libero dot it
2005-01-11 1:36 ` [Bug c++/19367] " pinskia at gcc dot gnu dot org
2005-01-11 1:42 ` pinskia at gcc dot gnu dot org
2005-01-19 18:41 ` pinskia at gcc dot gnu dot org
2005-01-25 16:11 ` pinskia at gcc dot gnu dot org
2005-01-31 2:11 ` mmitchel at gcc dot gnu dot org
2005-01-31 4:08 ` cvs-commit at gcc dot gnu dot org
2005-01-31 4:13 ` mmitchel at gcc dot gnu dot org
2005-02-28 15:16 ` cvs-commit 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).