public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable
@ 2006-07-05 12:19 reichelt at gcc dot gnu dot org
2006-07-05 14:48 ` [Bug c++/28266] " pinskia at gcc dot gnu dot org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-05 12:19 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 4.0.0:
====================
struct A
{
int i;
A(int = X);
};
void foo()
{
A().i;
}
====================
bug.cc:4: error: 'X' was not declared in this scope
bug.cc: In function 'void foo()':
bug.cc:9: internal compiler error: in gimple_add_tmp_var, at gimplify.c:720
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] ICE on invalid default variable
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
@ 2006-07-05 14:48 ` pinskia at gcc dot gnu dot org
2006-07-17 3:07 ` mmitchel at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-05 14:48 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
2006-07-05 14:48 ` [Bug c++/28266] " pinskia at gcc dot gnu dot org
@ 2006-07-17 3:07 ` mmitchel at gcc dot gnu dot org
2006-09-03 6:33 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:07 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
2006-07-05 14:48 ` [Bug c++/28266] " pinskia at gcc dot gnu dot org
2006-07-17 3:07 ` mmitchel at gcc dot gnu dot org
@ 2006-09-03 6:33 ` pinskia at gcc dot gnu dot org
2006-09-10 7:55 ` patchapp at dberlin dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-03 6:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-03 06:33 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-09-03 06:33:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-09-03 6:33 ` pinskia at gcc dot gnu dot org
@ 2006-09-10 7:55 ` patchapp at dberlin dot org
2007-01-29 16:27 ` [Bug c++/28266] [4.0/4.1/4.2/4.3 " jason at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: patchapp at dberlin dot org @ 2006-09-10 7:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from patchapp at dberlin dot org 2006-09-10 07:55 -------
Subject: Bug number PR c++/28266
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00367.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2/4.3 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-09-10 7:55 ` patchapp at dberlin dot org
@ 2007-01-29 16:27 ` jason at gcc dot gnu dot org
2007-02-01 20:11 ` [Bug c++/28266] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-01-29 16:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2007-01-29 16:27 -------
Subject: Bug 28266
Author: jason
Date: Mon Jan 29 16:27:21 2007
New Revision: 121288
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121288
Log:
PR c++/28266
* gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
expanded only once even if an error occurs.
Added:
trunk/gcc/testsuite/g++.dg/parse/defarg12.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-01-29 16:27 ` [Bug c++/28266] [4.0/4.1/4.2/4.3 " jason at gcc dot gnu dot org
@ 2007-02-01 20:11 ` reichelt at gcc dot gnu dot org
2007-02-01 20:12 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-01 20:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from reichelt at gcc dot gnu dot org 2007-02-01 20:11 -------
Fixed on mainline.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2/4.3 regression]|[4.0/4.1/4.2 regression] ICE
|ICE on invalid default |on invalid default variable
|variable |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-02-01 20:11 ` [Bug c++/28266] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
@ 2007-02-01 20:12 ` reichelt at gcc dot gnu dot org
2007-02-02 18:02 ` jason at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-01 20:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2007-02-01 20:12 -------
*** Bug 30295 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-02-01 20:12 ` reichelt at gcc dot gnu dot org
@ 2007-02-02 18:02 ` jason at gcc dot gnu dot org
2007-02-03 17:54 ` gdr at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-02-02 18:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2007-02-02 18:01 -------
Subject: Bug 28266
Author: jason
Date: Fri Feb 2 18:01:22 2007
New Revision: 121514
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121514
Log:
PR c++/28266
* gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
expanded only once even if an error occurs.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/parse/defarg12.C
- copied unchanged from r121288,
trunk/gcc/testsuite/g++.dg/parse/defarg12.C
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/gimplify.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-02-02 18:02 ` jason at gcc dot gnu dot org
@ 2007-02-03 17:54 ` gdr at gcc dot gnu dot org
2007-02-03 20:47 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 17:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from gdr at gcc dot gnu dot org 2007-02-03 17:54 -------
Won't fix in GCC-4.0.x. Adjusting milestone.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.4 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-02-03 17:54 ` gdr at gcc dot gnu dot org
@ 2007-02-03 20:47 ` pinskia at gcc dot gnu dot org
2007-02-14 9:26 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 20:47 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1/4.2 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2007-02-03 20:47 ` pinskia at gcc dot gnu dot org
@ 2007-02-14 9:26 ` mmitchel at gcc dot gnu dot org
2007-07-08 14:34 ` [Bug c++/28266] [4.0/4.1 " pcarlini at suse dot de
2008-07-04 15:40 ` [Bug c++/28266] [4.1 " jsm28 at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:26 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.0/4.1 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2007-02-14 9:26 ` mmitchel at gcc dot gnu dot org
@ 2007-07-08 14:34 ` pcarlini at suse dot de
2008-07-04 15:40 ` [Bug c++/28266] [4.1 " jsm28 at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pcarlini at suse dot de @ 2007-07-08 14:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pcarlini at suse dot de 2007-07-08 14:34 -------
Not a 4.2 regression anymore.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE on
|on invalid default variable |invalid default variable
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28266] [4.1 regression] ICE on invalid default variable
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
` (11 preceding siblings ...)
2007-07-08 14:34 ` [Bug c++/28266] [4.0/4.1 " pcarlini at suse dot de
@ 2008-07-04 15:40 ` jsm28 at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jsm28 at gcc dot gnu dot org 2008-07-04 15:39 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail|4.0.4 |4.0.4 4.1.3
Known to work| |4.2.0
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28266
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-07-04 15:40 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 12:19 [Bug c++/28266] New: [4.0/4.1/4.2 regression] ICE on invalid default variable reichelt at gcc dot gnu dot org
2006-07-05 14:48 ` [Bug c++/28266] " pinskia at gcc dot gnu dot org
2006-07-17 3:07 ` mmitchel at gcc dot gnu dot org
2006-09-03 6:33 ` pinskia at gcc dot gnu dot org
2006-09-10 7:55 ` patchapp at dberlin dot org
2007-01-29 16:27 ` [Bug c++/28266] [4.0/4.1/4.2/4.3 " jason at gcc dot gnu dot org
2007-02-01 20:11 ` [Bug c++/28266] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
2007-02-01 20:12 ` reichelt at gcc dot gnu dot org
2007-02-02 18:02 ` jason at gcc dot gnu dot org
2007-02-03 17:54 ` gdr at gcc dot gnu dot org
2007-02-03 20:47 ` pinskia at gcc dot gnu dot org
2007-02-14 9:26 ` mmitchel at gcc dot gnu dot org
2007-07-08 14:34 ` [Bug c++/28266] [4.0/4.1 " pcarlini at suse dot de
2008-07-04 15:40 ` [Bug c++/28266] [4.1 " jsm28 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).