public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21491] [4.0/4.1 Regression] crosses initialization of a pointer
2005-05-10 14:59 [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer pinskia at gcc dot gnu dot org
@ 2005-05-10 14:59 ` pinskia at gcc dot gnu dot org
2005-05-10 19:33 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 14:59 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.1
Version|unknown |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer
@ 2005-05-10 14:59 pinskia at gcc dot gnu dot org
2005-05-10 14:59 ` [Bug c++/21491] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 14:59 UTC (permalink / raw)
To: gcc-bugs
The following is invalid C++ and should be rejected:
struct Thing {
Thing(){}
};
int f (int i)
{
switch (i)
{
case 1:
Thing *str = new Thing;
case 2:
case 3:
;
}
return 0;
}
Previous versions before 4.0.0 rejected with the following message:
t.cc:11: error: jump to case label
t.cc:10: error: crosses initialization of `Thing*str'
t.cc:12: error: jump to case label
t.cc:10: error: crosses initialization of `Thing*str'
--
Summary: [4.0/4.1 Regression] crosses initialization of a pointer
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/21491] [4.0/4.1 Regression] crosses initialization of a pointer
2005-05-10 14:59 [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer pinskia at gcc dot gnu dot org
2005-05-10 14:59 ` [Bug c++/21491] " pinskia at gcc dot gnu dot org
@ 2005-05-10 19:33 ` pinskia at gcc dot gnu dot org
2005-05-15 14:11 ` lerdsuwa at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 19:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 19:33 -------
This started to fail after "3.5.0 20040909" but before "4.0.0 20050225".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/21491] [4.0/4.1 Regression] crosses initialization of a pointer
2005-05-10 14:59 [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer pinskia at gcc dot gnu dot org
2005-05-10 14:59 ` [Bug c++/21491] " pinskia at gcc dot gnu dot org
2005-05-10 19:33 ` pinskia at gcc dot gnu dot org
@ 2005-05-15 14:11 ` lerdsuwa at gcc dot gnu dot org
2005-07-08 1:44 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-05-15 14:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 14:11 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-05-15 14:11:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/21491] [4.0/4.1 Regression] crosses initialization of a pointer
2005-05-10 14:59 [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-05-15 14:11 ` lerdsuwa at gcc dot gnu dot org
@ 2005-07-08 1:44 ` mmitchel at gcc dot gnu dot org
2005-09-10 3:07 ` [Bug c++/21491] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:44 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/21491] [3.4/4.0/4.1 Regression] crosses initialization of a pointer
2005-05-10 14:59 [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-07-08 1:44 ` mmitchel at gcc dot gnu dot org
@ 2005-09-10 3:07 ` pinskia at gcc dot gnu dot org
2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10 3:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-10 03:07 -------
This is also accepted in 3.4.4 so this is a 3.4 regression also.
And it looks like this is very much related to PR 20721 and is most likely a dup of that bug too.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |20721
Known to fail| |3.4.4 4.0.0 4.1.0
Known to work| |3.4.0
Summary|[4.0/4.1 Regression] crosses|[3.4/4.0/4.1 Regression]
|initialization of a pointer |crosses initialization of a
| |pointer
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/21491] [3.4/4.0/4.1 Regression] crosses initialization of a pointer
2005-05-10 14:59 [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-09-10 3:07 ` [Bug c++/21491] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:13 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/21491] [3.4/4.0/4.1 Regression] crosses initialization of a pointer
[not found] <bug-21491-6528@http.gcc.gnu.org/bugzilla/>
@ 2005-10-13 9:07 ` mmitchel at gcc dot gnu dot org
0 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-13 9:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2005-10-13 09:06 -------
*** This bug has been marked as a duplicate of 20721 ***
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-10-13 9:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-10 14:59 [Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer pinskia at gcc dot gnu dot org
2005-05-10 14:59 ` [Bug c++/21491] " pinskia at gcc dot gnu dot org
2005-05-10 19:33 ` pinskia at gcc dot gnu dot org
2005-05-15 14:11 ` lerdsuwa at gcc dot gnu dot org
2005-07-08 1:44 ` mmitchel at gcc dot gnu dot org
2005-09-10 3:07 ` [Bug c++/21491] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org
[not found] <bug-21491-6528@http.gcc.gnu.org/bugzilla/>
2005-10-13 9:07 ` mmitchel 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).