public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20039] uninitialized const in `new' of `const struct'
       [not found] <bug-20039-4@http.gcc.gnu.org/bugzilla/>
@ 2011-04-12 21:32 ` fabien at gcc dot gnu.org
  2011-04-12 23:55 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: fabien at gcc dot gnu.org @ 2011-04-12 21:32 UTC (permalink / raw)
  To: gcc-bugs

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

fabien at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |UNCONFIRMED
                 CC|                            |fabien at gcc dot gnu.org
      Known to work|                            |4.4.5, 4.5.2, 4.6.0
     Ever Confirmed|1                           |0
      Known to fail|                            |4.1.2, 4.2.4, 4.3.5

--- Comment #3 from fabien at gcc dot gnu.org 2011-04-12 21:31:58 UTC ---
It was fixed in 4.4.x


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

* [Bug c++/20039] uninitialized const in `new' of `const struct'
       [not found] <bug-20039-4@http.gcc.gnu.org/bugzilla/>
  2011-04-12 21:32 ` [Bug c++/20039] uninitialized const in `new' of `const struct' fabien at gcc dot gnu.org
@ 2011-04-12 23:55 ` redi at gcc dot gnu.org
  2011-05-09 21:10 ` fabien at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-12 23:55 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-12 23:55:19 UTC ---
fixed then


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

* [Bug c++/20039] uninitialized const in `new' of `const struct'
       [not found] <bug-20039-4@http.gcc.gnu.org/bugzilla/>
  2011-04-12 21:32 ` [Bug c++/20039] uninitialized const in `new' of `const struct' fabien at gcc dot gnu.org
  2011-04-12 23:55 ` redi at gcc dot gnu.org
@ 2011-05-09 21:10 ` fabien at gcc dot gnu.org
  2011-09-23 21:37 ` jason at gcc dot gnu.org
  2011-09-25 20:46 ` jason at gcc dot gnu.org
  4 siblings, 0 replies; 7+ messages in thread
From: fabien at gcc dot gnu.org @ 2011-05-09 21:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from fabien at gcc dot gnu.org 2011-05-09 20:56:33 UTC ---
Author: fabien
Date: Mon May  9 20:56:29 2011
New Revision: 173592

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173592
Log:
gcc/testsuite/ChangeLog:

2011-05-09  Fabien Chene  <fabien@gcc.gnu.org>
    PR c++/20039
    * g++.dg/init/pr20039.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/init/pr20039.C
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/20039] uninitialized const in `new' of `const struct'
       [not found] <bug-20039-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-05-09 21:10 ` fabien at gcc dot gnu.org
@ 2011-09-23 21:37 ` jason at gcc dot gnu.org
  2011-09-25 20:46 ` jason at gcc dot gnu.org
  4 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-09-23 21:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-23 21:30:52 UTC ---
Author: jason
Date: Fri Sep 23 21:30:48 2011
New Revision: 179130

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179130
Log:
    Core 234 - allow const objects with no initializer or
    user-provided default constructor if the defaulted constructor
    initializes all the subobjects.
    PR c++/20039
    PR c++/42844
    * class.c (default_init_uninitialized_part): New.
    * cp-tree.h: Declare it.
    * decl.c (check_for_uninitialized_const_var): Use it.
    * init.c (perform_member_init): Likewise.
    (build_new_1): Likewise.
    * method.c (walk_field_subobs): Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/init/const8.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/init.c
    trunk/gcc/cp/method.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-object1.C
    trunk/gcc/testsuite/g++.dg/cpp0x/defaulted2.C
    trunk/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
    trunk/gcc/testsuite/g++.dg/init/pr20039.C
    trunk/gcc/testsuite/g++.dg/init/pr42844.C


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

* [Bug c++/20039] uninitialized const in `new' of `const struct'
       [not found] <bug-20039-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-09-23 21:37 ` jason at gcc dot gnu.org
@ 2011-09-25 20:46 ` jason at gcc dot gnu.org
  4 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-09-25 20:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-25 20:29:09 UTC ---
Author: jason
Date: Sun Sep 25 20:29:04 2011
New Revision: 179170

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179170
Log:
    Core 234 - allow const objects with no initializer or
    user-provided default constructor if the defaulted constructor
    initializes all the subobjects.
    PR c++/20039
    PR c++/42844
    * class.c (default_init_uninitialized_part): New.
    * cp-tree.h: Declare it.
    * decl.c (check_for_uninitialized_const_var): Use it.
    * init.c (perform_member_init): Likewise.
    (build_new_1): Likewise.
    * method.c (walk_field_subobs): Likewise.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/init/const8.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/class.c
    branches/gcc-4_6-branch/gcc/cp/cp-tree.h
    branches/gcc-4_6-branch/gcc/cp/decl.c
    branches/gcc-4_6-branch/gcc/cp/init.c
    branches/gcc-4_6-branch/gcc/cp/method.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-object1.C
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/defaulted2.C
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/init/pr42844.C
    branches/gcc-4_6-branch/gcc/testsuite/lib/prune.exp


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

* [Bug c++/20039] uninitialized const in `new' of `const struct'
       [not found] <bug-20039-10087@http.gcc.gnu.org/bugzilla/>
@ 2006-10-10  3:36 ` bangerth at dealii dot org
  0 siblings, 0 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2006-10-10  3:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bangerth at dealii dot org  2006-10-10 03:36 -------
*** Bug 28990 has been marked as a duplicate of this bug. ***


-- 

bangerth at dealii dot org changed:

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


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


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

* [Bug c++/20039] uninitialized const in `new' of `const struct'
  2005-02-18  1:05 [Bug c++/20039] New: " msadoghi at ca dot ibm dot com
@ 2005-02-18  1:16 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-18  1:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-17 21:04 -------
Confirmed, not a regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |accepts-invalid
      Known to fail|                            |2.95.3 3.0.4 3.2.3 3.3.3
                   |                            |3.4.0 4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-17 21:04:22
               date|                            |


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


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

end of thread, other threads:[~2011-09-25 20:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20039-4@http.gcc.gnu.org/bugzilla/>
2011-04-12 21:32 ` [Bug c++/20039] uninitialized const in `new' of `const struct' fabien at gcc dot gnu.org
2011-04-12 23:55 ` redi at gcc dot gnu.org
2011-05-09 21:10 ` fabien at gcc dot gnu.org
2011-09-23 21:37 ` jason at gcc dot gnu.org
2011-09-25 20:46 ` jason at gcc dot gnu.org
     [not found] <bug-20039-10087@http.gcc.gnu.org/bugzilla/>
2006-10-10  3:36 ` bangerth at dealii dot org
2005-02-18  1:05 [Bug c++/20039] New: " msadoghi at ca dot ibm dot com
2005-02-18  1:16 ` [Bug c++/20039] " 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).