public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14203] New: [3.3 regression] ICE on valid code
@ 2004-02-18 23:13 debian-gcc at lists dot debian dot org
2004-02-19 0:26 ` [Bug c++/14203] [3.4/3.5 regression] ICE on warning about unused variable bangerth at dealii dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-02-18 23:13 UTC (permalink / raw)
To: gcc-bugs
[forwarded from http://bugs.debian.org/233548]
with 3.4 CVS 20040215:
g++ -Wall bug-233548.cc
bug-233548.cc: In function `int main()':
bug-233548.cc:19: warning: unused variable 'dummy'
bug-233548.cc:26: internal compiler error: in make_decl_rtl, at varasm.c:752
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
namespace Data
{
class Dummy;
}
namespace
{
const bool g_bAlways = false;
Data::Dummy* getDummy();
};
int main()
{
int i;
if (g_bAlways)
{
if (Data::Dummy* dummy = getDummy())
{
int bla(5);
i = bla;
}
}
}
--
Summary: [3.3 regression] ICE on valid code
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/14203] [3.4/3.5 regression] ICE on warning about unused variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
@ 2004-02-19 0:26 ` bangerth at dealii dot org
2004-02-19 0:55 ` [Bug middle-end/14203] [3.4/3.5 regression] ICE on warning about uninitialized variable pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2004-02-19 0:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-02-19 00:26 -------
Confirmed. Here's something a little smaller:
-----------------------
int* foo();
const bool b = false;
int main() {
int i;
if (b)
if (int* p = foo())
{
int bla;
i = 1;
}
}
------------------------
This is a regression on 3.4 and mainline against 3.3.3:
deal.II/base> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc -Wall
x.cc: In function `int main()':
x.cc:10: warning: unused variable 'bla'
x.cc:8: warning: unused variable 'p'
x.cc:13: internal compiler error: in make_decl_rtl, at varasm.c:707
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-02-19 00:26:07
date| |
Summary|[3.3 regression] ICE on |[3.4/3.5 regression] ICE on
|valid code |warning about unused
| |variable
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4/3.5 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
2004-02-19 0:26 ` [Bug c++/14203] [3.4/3.5 regression] ICE on warning about unused variable bangerth at dealii dot org
@ 2004-02-19 0:55 ` pinskia at gcc dot gnu dot org
2004-02-19 2:32 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-19 0:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-19 00:55 -------
The problem is that the variable was not emitted into RTL so the variable does have not a DECL_RTL and
calling make_decl_rtl on the decl will cause an ICE as the variable is an automatic variable. Note this is
fixed on the tree-ssa but having this warning being on the tree level and not the RTL level.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Component|c++ |middle-end
Known to work|3.3.3 |3.3.3 tree-ssa
Summary|[3.4/3.5 regression] ICE on |[3.4/3.5 regression] ICE on
|warning about unused |warning about uninitialized
|variable |variable
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4/3.5 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
2004-02-19 0:26 ` [Bug c++/14203] [3.4/3.5 regression] ICE on warning about unused variable bangerth at dealii dot org
2004-02-19 0:55 ` [Bug middle-end/14203] [3.4/3.5 regression] ICE on warning about uninitialized variable pinskia at gcc dot gnu dot org
@ 2004-02-19 2:32 ` reichelt at gcc dot gnu dot org
2004-02-28 3:10 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-02-19 2:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-02-19 02:32 -------
An even shorter version:
=============================================
void foo()
{
if (false)
if (int i=0)
int j=0;
}
=============================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Severity|normal |critical
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4/3.5 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2004-02-19 2:32 ` reichelt at gcc dot gnu dot org
@ 2004-02-28 3:10 ` mmitchel at gcc dot gnu dot org
2004-02-29 14:07 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-28 3:10 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=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4/3.5 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2004-02-28 3:10 ` mmitchel at gcc dot gnu dot org
@ 2004-02-29 14:07 ` cvs-commit at gcc dot gnu dot org
2004-02-29 16:14 ` [Bug middle-end/14203] [3.4 " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-29 14:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-29 14:07 -------
Subject: Bug 14203
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: sayle@gcc.gnu.org 2004-02-29 14:07:44
Modified files:
gcc : ChangeLog function.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/warn: Wunused-6.C
Log message:
2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
PR middle-end/14203
* function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
instead of testing whether DECL_RTL is not NULL.
2004-02-29 Roger Sayle <roger@eyesopen.com>
PR middle-end/14203
* g++.dg/warn/Wunused-6.C: New test case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2967&r2=2.2968
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&r1=1.498&r2=1.499
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3553&r2=1.3554
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wunused-6.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
` (4 preceding siblings ...)
2004-02-29 14:07 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-29 16:14 ` pinskia at gcc dot gnu dot org
2004-03-01 6:49 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-29 16:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-29 16:14 -------
Only a 3.4 Regression now.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4/3.5 regression] ICE on |[3.4 regression] ICE on
|warning about uninitialized |warning about uninitialized
|variable |variable
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
` (5 preceding siblings ...)
2004-02-29 16:14 ` [Bug middle-end/14203] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-03-01 6:49 ` mmitchel at gcc dot gnu dot org
2004-03-06 2:32 ` cvs-commit at gcc dot gnu dot org
2004-03-06 3:28 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-01 6:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-01 06:48 -------
May we please have this patch committed to the 3.4 branch as well?
Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
` (6 preceding siblings ...)
2004-03-01 6:49 ` mmitchel at gcc dot gnu dot org
@ 2004-03-06 2:32 ` cvs-commit at gcc dot gnu dot org
2004-03-06 3:28 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-06 2:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-06 02:32 -------
Subject: Bug 14203
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: sayle@gcc.gnu.org 2004-03-06 02:32:07
Modified files:
gcc : ChangeLog function.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/warn: Wunused-6.C
Log message:
2004-03-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
PR middle-end/14203
* function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
instead of testing whether DECL_RTL is not NULL.
2004-03-05 Roger Sayle <roger@eyesopen.com>
* g++.dg/warn/Wunused-6.C: New test case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.293&r2=2.2326.2.294
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.483.4.5&r2=1.483.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.122&r2=1.3389.2.123
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wunused-6.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/14203] [3.4 regression] ICE on warning about uninitialized variable
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
` (7 preceding siblings ...)
2004-03-06 2:32 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-06 3:28 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-06 3:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-06 03:28 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14203
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-03-06 3:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-18 23:13 [Bug c++/14203] New: [3.3 regression] ICE on valid code debian-gcc at lists dot debian dot org
2004-02-19 0:26 ` [Bug c++/14203] [3.4/3.5 regression] ICE on warning about unused variable bangerth at dealii dot org
2004-02-19 0:55 ` [Bug middle-end/14203] [3.4/3.5 regression] ICE on warning about uninitialized variable pinskia at gcc dot gnu dot org
2004-02-19 2:32 ` reichelt at gcc dot gnu dot org
2004-02-28 3:10 ` mmitchel at gcc dot gnu dot org
2004-02-29 14:07 ` cvs-commit at gcc dot gnu dot org
2004-02-29 16:14 ` [Bug middle-end/14203] [3.4 " pinskia at gcc dot gnu dot org
2004-03-01 6:49 ` mmitchel at gcc dot gnu dot org
2004-03-06 2:32 ` cvs-commit at gcc dot gnu dot org
2004-03-06 3:28 ` pinskia 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).