public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
       [not found] <bug-20721-10037@http.gcc.gnu.org/bugzilla/>
@ 2005-10-13  9:07 ` mmitchel at gcc dot gnu dot org
  2005-10-13 23:59 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-13  9:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mmitchel at gcc dot gnu dot org  2005-10-13 09:06 -------
*** Bug 21491 has been marked as a duplicate of this bug. ***


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
       [not found] <bug-20721-10037@http.gcc.gnu.org/bugzilla/>
  2005-10-13  9:07 ` [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto mmitchel at gcc dot gnu dot org
@ 2005-10-13 23:59 ` cvs-commit at gcc dot gnu dot org
  2005-10-14  0:00 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-13 23:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from cvs-commit at gcc dot gnu dot org  2005-10-13 23:59 -------
Subject: Bug 20721

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     mmitchel@gcc.gnu.org    2005-10-13 23:59:36

Modified files:
        gcc/cp         : cp-tree.h decl.c ChangeLog 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/g++.dg/init: goto2.C 

Log message:
        PR c++/20721
        * cp-tree.h (DECL_NONTRIVIALLY_INITIALIZED_P): New macro.
        * decl.c (duplicate_decls): Merge it into new declarations.
        (decl_jump_unsafe): Use it, rather than DECL_INITIAL.
        (cp_finish_decl): Set it, when appropriate.
        PR c++/20721
        * g++.dg/init/goto2.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1106.2.15&r2=1.1106.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1371.2.26&r2=1.1371.2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.130&r2=1.4648.2.131
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/goto2.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.452&r2=1.5084.2.453


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
       [not found] <bug-20721-10037@http.gcc.gnu.org/bugzilla/>
  2005-10-13  9:07 ` [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto mmitchel at gcc dot gnu dot org
  2005-10-13 23:59 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-14  0:00 ` cvs-commit at gcc dot gnu dot org
  2005-10-14  0:03 ` [Bug c++/20721] [3.4 " mmitchel at gcc dot gnu dot org
  2006-03-31 19:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-14  0:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from cvs-commit at gcc dot gnu dot org  2005-10-14 00:00 -------
Subject: Bug 20721

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     mmitchel@gcc.gnu.org    2005-10-13 23:59:57

Modified files:
        gcc/cp         : cp-tree.h decl.c ChangeLog 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/g++.dg/init: goto2.C 

Log message:
        PR c++/20721
        * cp-tree.h (DECL_NONTRIVIALLY_INITIALIZED_P): New macro.
        * decl.c (duplicate_decls): Merge it into new declarations.
        (decl_jump_unsafe): Use it, rather than DECL_INITIAL.
        (cp_finish_decl): Set it, when appropriate.
        PR c++/20721
        * g++.dg/init/goto2.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.1165&r2=1.1166
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1433&r2=1.1434
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4929&r2=1.4930
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/goto2.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6187&r2=1.6188


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4 Regression] crossing of a initialization left undetected on goto
       [not found] <bug-20721-10037@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-14  0:00 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-14  0:03 ` mmitchel at gcc dot gnu dot org
  2006-03-31 19:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-14  0:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from mmitchel at gcc dot gnu dot org  2005-10-14 00:03 -------
Fixed in 4.0.3.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|[3.4/4.0/4.1 Regression]    |[3.4 Regression] crossing of
                   |crossing of a initialization|a initialization left
                   |left undetected on goto     |undetected on goto


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4 Regression] crossing of a initialization left undetected on goto
       [not found] <bug-20721-10037@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-10-14  0:03 ` [Bug c++/20721] [3.4 " mmitchel at gcc dot gnu dot org
@ 2006-03-31 19:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-31 19:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2006-03-31 19:13 -------
*** Bug 26962 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gary dot lazer at yahoo dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
  2005-04-01 19:19 [Bug c++/20721] New: [regression from 3.4.2 to 3.4.3] " nefercheprure at gmail dot com
                   ` (3 preceding siblings ...)
  2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
@ 2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:21 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=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
  2005-04-01 19:19 [Bug c++/20721] New: [regression from 3.4.2 to 3.4.3] " nefercheprure at gmail dot com
                   ` (2 preceding siblings ...)
  2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
@ 2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 21:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-22 21:13 -------
Moving to 4.0.2 pre Mark.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |4.0.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
  2005-04-01 19:19 [Bug c++/20721] New: [regression from 3.4.2 to 3.4.3] " nefercheprure at gmail dot com
  2005-04-01 21:57 ` [Bug c++/20721] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-04-01 21:57 ` pinskia at gcc dot gnu dot org
@ 2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
  2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
  2005-04-01 19:19 [Bug c++/20721] New: [regression from 3.4.2 to 3.4.3] " nefercheprure at gmail dot com
  2005-04-01 21:57 ` [Bug c++/20721] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-04-01 21:57 ` pinskia at gcc dot gnu dot org
  2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-01 21:57 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto
  2005-04-01 19:19 [Bug c++/20721] New: [regression from 3.4.2 to 3.4.3] " nefercheprure at gmail dot com
@ 2005-04-01 21:57 ` pinskia at gcc dot gnu dot org
  2005-04-01 21:57 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-01 21:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-01 21:57 -------
: Search converges between 2004-10-26-161001-trunk (#611) and 2004-11-03-014001-trunk 
(#612).
: Search converges between 2004-10-28-004002-3.4 (#106) and 2004-11-01-004001-3.4 (#107).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20721


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-03-31 19:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20721-10037@http.gcc.gnu.org/bugzilla/>
2005-10-13  9:07 ` [Bug c++/20721] [3.4/4.0/4.1 Regression] crossing of a initialization left undetected on goto mmitchel at gcc dot gnu dot org
2005-10-13 23:59 ` cvs-commit at gcc dot gnu dot org
2005-10-14  0:00 ` cvs-commit at gcc dot gnu dot org
2005-10-14  0:03 ` [Bug c++/20721] [3.4 " mmitchel at gcc dot gnu dot org
2006-03-31 19:13 ` pinskia at gcc dot gnu dot org
2005-04-01 19:19 [Bug c++/20721] New: [regression from 3.4.2 to 3.4.3] " nefercheprure at gmail dot com
2005-04-01 21:57 ` [Bug c++/20721] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-01 21:57 ` pinskia at gcc dot gnu dot org
2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org
2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
2005-09-27 16:21 ` 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).