* [Bug c++/22204] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
@ 2005-06-27 19:24 ` pplppp at gmail dot com
2005-06-27 19:26 ` pplppp at gmail dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pplppp at gmail dot com @ 2005-06-27 19:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pplppp at gmail dot com 2005-06-27 19:24 -------
Created an attachment (id=9161)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9161&action=view)
information specified in the bug reporting instructions
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
2005-06-27 19:24 ` [Bug c++/22204] " pplppp at gmail dot com
@ 2005-06-27 19:26 ` pplppp at gmail dot com
2005-06-27 19:31 ` [Bug c++/22204] [4.0/4.1 Regression] [repo] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pplppp at gmail dot com @ 2005-06-27 19:26 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
2005-06-27 19:24 ` [Bug c++/22204] " pplppp at gmail dot com
2005-06-27 19:26 ` pplppp at gmail dot com
@ 2005-06-27 19:31 ` pinskia at gcc dot gnu dot org
2005-06-27 20:22 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-27 19:31 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|internal compiler error: |[4.0/4.1 Regression] [repo]
|Segmentation fault |internal compiler error:
| |Segmentation fault
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (2 preceding siblings ...)
2005-06-27 19:31 ` [Bug c++/22204] [4.0/4.1 Regression] [repo] " pinskia at gcc dot gnu dot org
@ 2005-06-27 20:22 ` pinskia at gcc dot gnu dot org
2005-06-27 20:28 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-27 20:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-27 20:22 -------
Reduced testcase:
#include <typeinfo>
template<int>
struct function1
{
function1(void (*f)(void))
{
typeid(int (*)(char&));
}
};
void inputclassifier(void){}
function1<1> b(inputclassifier) ;
----
-frepo is only needed to reproduce this.
This has been failing since at least "3.5.0 20040909".
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |4.0.0 4.1.0
Known to work| |3.4.0 3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2005-06-27 20:22:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (3 preceding siblings ...)
2005-06-27 20:22 ` pinskia at gcc dot gnu dot org
@ 2005-06-27 20:28 ` pinskia at gcc dot gnu dot org
2005-06-27 20:30 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-27 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-27 20:28 -------
we get this ICE:
t.cc:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
And the backtrace:
#0 0x08134f2e in repo_emit_p (decl=0xb7cc257c) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/
cp/repo.c:288
#1 0x080ca298 in import_export_decl (decl=0xb7cc257c) at /home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/cp/decl2.c:1726
#2 0x080f3e30 in emit_tinfo_decl (decl=0xb7cc257c) at /home/peshtigo/pinskia/src/gnu/gcc/src/
gcc/cp/rtti.c:1465
#3 0x080cdc95 in cp_finish_file () at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/decl2.c:2883
#4 0x08184b0f in c_common_parse_file (set_yydebug=0) at /home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/c-opts.c:1119
#5 0x08493b15 in toplev_main (argc=0, argv=0xbff1a054) at /home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/toplev.c:966
#6 0x003e7ad4 in __libc_start_main () from /lib/tls/libc.so.6
#7 0x08049b21 in _start ()
287 if (!DECL_TEMPLATE_INSTANTIATION (decl)
288 && !CLASSTYPE_TEMPLATE_INSTANTIATION (type)) <--- here
The type which is crashing on (it is not a template at all but a pointer to a function type):
(gdb) p debug_generic_expr (type)
intD.2 (*<T380>) (void)
<pointer_type 0xb7d4fa8c
type <function_type 0xb7cb1c3c
type <integer_type 0xb7ca057c int public type_6 SI
size <integer_cst 0xb7c983f0 constant invariant 32>
unit size <integer_cst 0xb7c98180 constant invariant 4>
align 32 symtab 0 alias set -1 precision 32 min <integer_cst 0xb7c983a8 -2147483648> max
<integer_cst 0xb7c983c0 2147483647>
pointer_to_this <pointer_type 0xb7cafdec>>
QI
size <integer_cst 0xb7c981f8 constant invariant 8>
unit size <integer_cst 0xb7c98210 constant invariant 1>
align 8 symtab 0 alias set -1
arg-types <tree_list 0xb7c98c48 value <void_type 0xb7caf9b4 void>>
pointer_to_this <pointer_type 0xb7d4fa8c>>
unsigned SI size <integer_cst 0xb7c983f0 32> unit size <integer_cst 0xb7c98180 4>
align 32 symtab 0 alias set -1>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (4 preceding siblings ...)
2005-06-27 20:28 ` pinskia at gcc dot gnu dot org
@ 2005-06-27 20:30 ` pinskia at gcc dot gnu dot org
2005-07-15 23:13 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-27 20:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-27 20:30 -------
And another testcase, this time with an array:
#include <typeinfo>
template<int>
struct function1
{
function1()
{
typeid(int[100]);
}
};
function1<1> b;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (5 preceding siblings ...)
2005-06-27 20:30 ` pinskia at gcc dot gnu dot org
@ 2005-07-15 23:13 ` mmitchel at gcc dot gnu dot org
2005-07-16 1:00 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-15 23:13 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=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (6 preceding siblings ...)
2005-07-15 23:13 ` mmitchel at gcc dot gnu dot org
@ 2005-07-16 1:00 ` cvs-commit at gcc dot gnu dot org
2005-07-16 1:13 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-16 1:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-16 00:25 -------
Subject: Bug 22204
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-07-16 00:25:01
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog repo.c
Added files:
gcc/testsuite/g++.dg/rtti: repo1.C
Log message:
PR c++/22204
* repo.c (repo_emit_p): Robustify.
PR c++/22204
* g++.dg/rtti/repo1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5773&r2=1.5774
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/rtti/repo1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4821&r2=1.4822
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/repo.c.diff?cvsroot=gcc&r1=1.58&r2=1.59
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (7 preceding siblings ...)
2005-07-16 1:00 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-16 1:13 ` cvs-commit at gcc dot gnu dot org
2005-07-16 1:16 ` mmitchel at gcc dot gnu dot org
2005-08-14 19:22 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-16 1:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-16 01:12 -------
Subject: Bug 22204
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: mmitchel@gcc.gnu.org 2005-07-16 01:11:53
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog repo.c
Added files:
gcc/testsuite/g++.dg/rtti: repo1.C
Log message:
PR c++/22204
* repo.c (repo_emit_p): Robustify.
PR c++/22204
* g++.dg/rtti/repo1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.280&r2=1.5084.2.281
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/rtti/repo1.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.67&r2=1.4648.2.68
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/repo.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.54&r2=1.54.18.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (8 preceding siblings ...)
2005-07-16 1:13 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-16 1:16 ` mmitchel at gcc dot gnu dot org
2005-08-14 19:22 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-16 1:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-07-16 01:13 -------
Fixed in 4.0.2.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/22204] [4.0/4.1 Regression] [repo] internal compiler error: Segmentation fault
2005-06-27 19:21 [Bug c++/22204] New: internal compiler error: Segmentation fault pplppp at gmail dot com
` (9 preceding siblings ...)
2005-07-16 1:16 ` mmitchel at gcc dot gnu dot org
@ 2005-08-14 19:22 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-14 19:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-14 19:22 -------
*** Bug 23388 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |g dot u dot g dot i at gmx
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204
^ permalink raw reply [flat|nested] 12+ messages in thread