This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Apr 2005 21:57:12 -0000
- Subject: [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
- References: <20050401191842.20721.nefercheprure@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-01 21:57 -------
Reduced testcase for the accepts invalid, I will then reduce the ICE on the mainline soon (note you have
some other invalid code in there):
bool f();
void g(int i)
{
if (i) goto bad;
bool a = f();
bad:
;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Known to fail| |3.4.3 4.0.0
Known to work| |3.4.0 3.4.2
Last reconfirmed|0000-00-00 00:00:00 |2005-04-01 21:57:11
date| |
Summary|[regression from 3.4.2 to |[3.4/4.0/4.1 Regression]
|3.4.3] crossing of a |crossing of a initialization
|initialization left |left undetected on goto
|undetected on goto |
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721