[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-12-04 Thread jason at gcc dot gnu dot org


--- Comment #7 from jason at gcc dot gnu dot org  2008-12-04 14:29 ---
Just hadn't gotten to that part yet, thanks for the reminder.  Fixed.


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-12-03 Thread cgd at google dot com


--- Comment #6 from cgd at google dot com  2008-12-04 07:12 ---
verified after syncing that my test case is now fixed.

(Would close, but not sure why Jason didn't close it... please close if there's
nothing else to do, Jason, or tell me to.)


-- 


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



[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-12-03 Thread jason at gcc dot gnu dot org


--- Comment #5 from jason at gcc dot gnu dot org  2008-12-03 23:58 ---
Subject: Bug 38232

Author: jason
Date: Wed Dec  3 23:57:19 2008
New Revision: 142418

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142418
Log:
PR c++/38232
* init.c (build_value_init): Do initial zero-initialization
of a class with an implicitly-defined constructor using
build_zero_init rather than in build_value_init.
(build_value_init_1): Fold into build_value_init.

Added:
trunk/gcc/testsuite/g++.dg/init/value5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-12-03 Thread jason at gcc dot gnu dot org


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-11-23 12:20:31 |2008-12-03 20:57:38
   date||


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



[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-12-01 Thread cgd at google dot com


--- Comment #4 from cgd at google dot com  2008-12-01 23:28 ---
Decided to try to verify again with current head of trunk compiler (since
several other bugs I reported have been fixed, and one was related to value
initialization).

gcc version 4.4.0 20081201 (experimental) (GCC) 

configured/built same way as before.

This error still occurs.  (FYI.)


-- 


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



[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-11-23 Thread crowl at google dot com


--- Comment #3 from crowl at google dot com  2008-11-23 23:50 ---
The relevant change in DR 178 is

   To value-initialize an object of type T means:

  * if T is a class type (clause 9 [class]) with a user-declared
constructor (12.1 [class.ctor]), then the default constructor
for T is called (and the initialization is ill-formed if T
has no accessible default constructor);

The default constructor for derived should call the default
constructor for base.  The base constructor is defined in another
file, and so any incorrect code in the base constructor should be
flagged in another compilation.


-- 


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



[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-11-23 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2008-11-23 18:31 ---
DR 178 changed some of the behavior here and I think what GCC is doing is now
the correct behavior according to that Defect report.

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#178

See Also PR 36394 and PR 11309.


-- 

pinskia 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=38232



[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-11-23 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2008-11-23 12:20 ---
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||rejects-valid
  Known to work||4.3.2
   Last reconfirmed|-00-00 00:00:00 |2008-11-23 12:20:31
   date||
Summary|"value-initialization of|[4.4 Regression] "value-
   |reference" warning too  |initialization of reference"
   |strict  |warning too strict
   Target Milestone|--- |4.4.0


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