This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch/RFC] PR 60047
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 05 Feb 2014 16:28:15 -0500
- Subject: Re: [C++ Patch/RFC] PR 60047
- Authentication-results: sourceware.org; auth=none
- References: <52F0D44C dot 1010106 at oracle dot com> <52F2647E dot 4010402 at oracle dot com>
On 02/05/2014 11:19 AM, Paolo Carlini wrote:
if (vec_safe_is_empty (vbases))
/* No virtual bases to worry about. */;
else if (!assign_p)
{
if (constexpr_p)
*constexpr_p = false;
*constexpr_p should be false for a constructor of a class with virtual
bases, according to the standard (7.1.5p4):
The definition of a constexpr constructor shall satisfy the following
constraints:
â the class shall not have any virtual base classes;
...
So the assert in implicit_declare_fn is wrong. I guess I would fix it
by checking CLASSTYPE_VBASECLASSES.
Jason