This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67364] [5/6 Regression] "accessing uninitialized member" error in constexpr context
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Mar 2016 22:45:48 +0000
- Subject: [Bug c++/67364] [5/6 Regression] "accessing uninitialized member" error in constexpr context
- Auto-submitted: auto-generated
- References: <bug-67364-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67364
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Mar 3 22:45:16 2016
New Revision: 233948
URL: https://gcc.gnu.org/viewcvs?rev=233948&root=gcc&view=rev
Log:
PR c++/67364
* constexpr.c (cxx_eval_component_reference): Just return an empty
CONSTRUCTOR for an empty class.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-empty11.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/constexpr.c