public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/14527] New: Segfault in can_throw_internal
@ 2004-03-11 10:16 jakub at gcc dot gnu dot org
2004-03-11 10:40 ` [Bug middle-end/14527] " jakub at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-03-11 10:16 UTC (permalink / raw)
To: gcc-bugs
Following testcase causes cc1plus segfault on i386 on gcc-3_4-branch as of today.
It worked with a gcc-3_4-branch snapshot from end of January and works on 3.3
branch and trunk, so it should be handled as a regression.
// { dg-do compile }
// { dg-options "-O2" }
extern char *foo (char *, int);
struct A
{
int i;
void bar (char *);
};
struct B
{
B ();
void baz (void *);
};
struct C
{
C (const char *, int);
};
void
A::bar (char *a)
{
B *b;
char *p1, *p2 = a + 512;
while (foo (a, 511))
{
b = new B ();
p1 = a;
while (*p1)
{
b->baz (new C (p1, p2 - p1));
p1 = *p2 ? p2 + 1 : p2;
}
}
}
--
Summary: Segfault in can_throw_internal
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: x86_64-redhat-linux
GCC target triplet: i386-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14527
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/14527] Segfault in can_throw_internal
2004-03-11 10:16 [Bug middle-end/14527] New: Segfault in can_throw_internal jakub at gcc dot gnu dot org
@ 2004-03-11 10:40 ` jakub at gcc dot gnu dot org
2004-03-11 15:55 ` [Bug middle-end/14527] [3.4 regression] " bangerth at dealii dot org
2004-03-16 16:08 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-03-11 10:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14527
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/14527] [3.4 regression] Segfault in can_throw_internal
2004-03-11 10:16 [Bug middle-end/14527] New: Segfault in can_throw_internal jakub at gcc dot gnu dot org
2004-03-11 10:40 ` [Bug middle-end/14527] " jakub at gcc dot gnu dot org
@ 2004-03-11 15:55 ` bangerth at dealii dot org
2004-03-16 16:08 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-03-11 15:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-03-11 15:55 -------
Confirmed. A regression indeed.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.4.0
Known to work| |3.3.4 3.5.0
Last reconfirmed|0000-00-00 00:00:00 |2004-03-11 15:55:30
date| |
Summary|Segfault in |[3.4 regression] Segfault in
|can_throw_internal |can_throw_internal
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14527
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/14527] [3.4 regression] Segfault in can_throw_internal
2004-03-11 10:16 [Bug middle-end/14527] New: Segfault in can_throw_internal jakub at gcc dot gnu dot org
2004-03-11 10:40 ` [Bug middle-end/14527] " jakub at gcc dot gnu dot org
2004-03-11 15:55 ` [Bug middle-end/14527] [3.4 regression] " bangerth at dealii dot org
@ 2004-03-16 16:08 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-03-16 16:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-03-16 16:08 -------
*** This bug has been marked as a duplicate of 14477 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14527
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-03-16 16:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 10:16 [Bug middle-end/14527] New: Segfault in can_throw_internal jakub at gcc dot gnu dot org
2004-03-11 10:40 ` [Bug middle-end/14527] " jakub at gcc dot gnu dot org
2004-03-11 15:55 ` [Bug middle-end/14527] [3.4 regression] " bangerth at dealii dot org
2004-03-16 16:08 ` jakub 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).