public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18825] New: ICE in wv2
@ 2004-12-04 12:00 steven at gcc dot gnu dot org
2004-12-04 12:01 ` [Bug c++/18825] " steven at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-04 12:00 UTC (permalink / raw)
To: gcc-bugs
cc1plus ICEs on the to-be-attached test case with any combination of
options, on all targets I could try:
t.ii: In instantiation of 'wvWare::PLCFIterator<wvWare::Word97::PCD>':
t.ii:54513: instantiated from here
t.ii:47001: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
Here's a bit of gdb output:
Starting program: /space/stevenb/build/gcc/cc1plus -quiet t.ii
Program received signal SIGSEGV, Segmentation fault.
0x000000000054b524 in perform_or_defer_access_check (binfo=0x0,
decl=0x2a98a16b60)
at ../../mainline/gcc/cp/semantics.c:311
311 gcc_assert (TREE_CODE (binfo) == TREE_BINFO);
(gdb) up
#1 0x000000000052ee00 in add_friend (type=0x2a98a277e0, decl=0x2a98a16b60,
complain=0 '\0')
at ../../mainline/gcc/cp/friend.c:169
169 perform_or_defer_access_check (TYPE_BINFO (ctx), decl);
(gdb) p debug_tree (ctx)
<record_type 0x2a96532a80 PLCF<wvWare::Word97::PCD> type_5 type_6 VOID
align 8 symtab 0 alias set -1 context <namespace_decl 0x2a95ae2ee0 wvWare>
no-binfo use_template=1 interface-unknown
pointer_to_this <pointer_type 0x2a96541e00> chain <type_decl 0x2a96532b60
PLCF<wvWare::Word97::PCD>>>
$3 = void
(gdb)
--
Summary: ICE in wv2
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: steven at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] ICE in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
@ 2004-12-04 12:01 ` steven at gcc dot gnu dot org
2004-12-04 12:48 ` [Bug c++/18825] [4.0 Rergession] ICE segmentation fault " belyshev at lubercy dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-04 12:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2004-12-04 12:01 -------
Created an attachment (id=7670)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7670&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] [4.0 Rergession] ICE segmentation fault in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
2004-12-04 12:01 ` [Bug c++/18825] " steven at gcc dot gnu dot org
@ 2004-12-04 12:48 ` belyshev at lubercy dot com
2004-12-04 12:57 ` belyshev at lubercy dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: belyshev at lubercy dot com @ 2004-12-04 12:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-12-04 12:48 -------
// reduced testcase:
template<class T> class A
{
void f ();
};
template<class T> class B
{
friend void A<T>::f ();
};
int f ()
{
B<int> b;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |4.0.0
Known to work| |3.4.4
Last reconfirmed|0000-00-00 00:00:00 |2004-12-04 12:48:36
date| |
Summary|ICE in wv2 |[4.0 Rergession] ICE
| |segmentation fault in wv2
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] [4.0 Rergession] ICE segmentation fault in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
2004-12-04 12:01 ` [Bug c++/18825] " steven at gcc dot gnu dot org
2004-12-04 12:48 ` [Bug c++/18825] [4.0 Rergession] ICE segmentation fault " belyshev at lubercy dot com
@ 2004-12-04 12:57 ` belyshev at lubercy dot com
2004-12-06 11:46 ` [Bug c++/18825] [4.0 Regression] " lerdsuwa at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: belyshev at lubercy dot com @ 2004-12-04 12:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-12-04 12:57 -------
: Search converges between 2004-07-12-trunk (#484) and 2004-07-13-trunk (#485).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] [4.0 Regression] ICE segmentation fault in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-12-04 12:57 ` belyshev at lubercy dot com
@ 2004-12-06 11:46 ` lerdsuwa at gcc dot gnu dot org
2004-12-08 11:04 ` lerdsuwa at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-12-06 11:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-06 11:45 -------
We forget to complete the type.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] [4.0 Regression] ICE segmentation fault in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-12-06 11:46 ` [Bug c++/18825] [4.0 Regression] " lerdsuwa at gcc dot gnu dot org
@ 2004-12-08 11:04 ` lerdsuwa at gcc dot gnu dot org
2004-12-14 14:13 ` steven at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-12-08 11:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-08 11:04 -------
Patch submitted:
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00543.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] [4.0 Regression] ICE segmentation fault in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-12-08 11:04 ` lerdsuwa at gcc dot gnu dot org
@ 2004-12-14 14:13 ` steven at gcc dot gnu dot org
2004-12-15 15:21 ` cvs-commit at gcc dot gnu dot org
2004-12-15 15:22 ` lerdsuwa at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-12-14 14:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2004-12-14 14:12 -------
*** Bug 18957 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |schwab at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] [4.0 Regression] ICE segmentation fault in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-12-14 14:13 ` steven at gcc dot gnu dot org
@ 2004-12-15 15:21 ` cvs-commit at gcc dot gnu dot org
2004-12-15 15:22 ` lerdsuwa at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-15 15:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-15 15:21 -------
Subject: Bug 18825
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: lerdsuwa@gcc.gnu.org 2004-12-15 15:21:12
Modified files:
gcc/cp : ChangeLog pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: friend32.C
Log message:
PR c++/18825
* pt.c (instantiate_class_template): Set input_location for
friend function.
(tsubst_friend_function): Don't set input_location here.
Make sure the context is complete if necessary.
* g++.dg/template/friend32.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4537&r2=1.4538
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.957&r2=1.958
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4762&r2=1.4763
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/friend32.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/18825] [4.0 Regression] ICE segmentation fault in wv2
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-12-15 15:21 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-15 15:22 ` lerdsuwa at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-12-15 15:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-15 15:22 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-12-15 15:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-04 12:00 [Bug c++/18825] New: ICE in wv2 steven at gcc dot gnu dot org
2004-12-04 12:01 ` [Bug c++/18825] " steven at gcc dot gnu dot org
2004-12-04 12:48 ` [Bug c++/18825] [4.0 Rergession] ICE segmentation fault " belyshev at lubercy dot com
2004-12-04 12:57 ` belyshev at lubercy dot com
2004-12-06 11:46 ` [Bug c++/18825] [4.0 Regression] " lerdsuwa at gcc dot gnu dot org
2004-12-08 11:04 ` lerdsuwa at gcc dot gnu dot org
2004-12-14 14:13 ` steven at gcc dot gnu dot org
2004-12-15 15:21 ` cvs-commit at gcc dot gnu dot org
2004-12-15 15:22 ` lerdsuwa 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).