[Bug c++/65896] [5/6 Regression] Erroneous uninitialized variable access error in constexpr function with temporary variables

2015-04-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65896

--- Comment #3 from Jason Merrill jason at gcc dot gnu.org ---
Author: jason
Date: Wed Apr 29 00:57:50 2015
New Revision: 222557

URL: https://gcc.gnu.org/viewcvs?rev=222557root=gccview=rev
Log:
PR c++/65896
* constexpr.c (cxx_eval_store_expression): Don't try to actually
store an empty class.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-empty9.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/constexpr.c


[Bug c++/65896] [5/6 Regression] Erroneous uninitialized variable access error in constexpr function with temporary variables

2015-04-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65896

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||jason at gcc dot gnu.org
 Resolution|--- |FIXED
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org
   Target Milestone|--- |5.2

--- Comment #4 from Jason Merrill jason at gcc dot gnu.org ---
Fixed for 5.2, 6


[Bug c++/65896] [5/6 Regression] Erroneous uninitialized variable access error in constexpr function with temporary variables

2015-04-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65896

--- Comment #2 from Jason Merrill jason at gcc dot gnu.org ---
Author: jason
Date: Tue Apr 28 21:27:17 2015
New Revision: 222549

URL: https://gcc.gnu.org/viewcvs?rev=222549root=gccview=rev
Log:
PR c++/65896
* constexpr.c (cxx_eval_store_expression): Don't try to actually
store an empty class.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-empty9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c


[Bug c++/65896] [5/6 Regression] Erroneous uninitialized variable access error in constexpr function with temporary variables

2015-04-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65896

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||rejects-valid
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-04-27
  Known to work||4.8.3, 4.9.2
Summary|Erroneous uninitialized |[5/6 Regression] Erroneous
   |variable access error in|uninitialized variable
   |constexpr function with |access error in constexpr
   |temporary variables |function with temporary
   ||variables
 Ever confirmed|0   |1
  Known to fail||5.1.0, 6.0