public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
To: Jason Merrill <jason@redhat.com>
Cc: gcc-patches List <gcc-patches@gcc.gnu.org>
Subject: Re: C++ PATCH for c++/52377 (NSDMI and unions)
Date: Fri, 31 May 2013 11:13:00 -0000	[thread overview]
Message-ID: <yddzjvbpflm.fsf@lokon.CeBiTec.Uni-Bielefeld.DE> (raw)
In-Reply-To: <51A7A64E.9020601@redhat.com> (Jason Merrill's message of "Thu,	30 May 2013 15:19:42 -0400")

Jason Merrill <jason@redhat.com> writes:

> sort_mem_initializers was skipping over all fields without a
> mem-initializer, even ones with an NSDMI.

One of the testcases doesn't compile on Solaris 10/x86:

output is:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C:4:7: error: multiple fields in union 'A' initialized
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C: In constructor 'constexpr A::A()':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C:4:7: error: initializations for multiple members of 'A'
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C: At global scope:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C:10:3: note: synthesized method 'constexpr A::A()' first required here 
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C: In constructor 'B::B()':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C:10:3: note: synthesized method 'constexpr A::A()' first required here 
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C: In constructor 'B::B()':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C:15:3: error: initializations for multiple members of 'B'

and produces a warning:

WARNING: g++.dg/cpp0x/nsdmi-union2.C -std=c++11 compilation failed to produce executable

Is this really intended to be a run test?

Also, both testcases are missing from gcc/testsuite/ChangeLog.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

  reply	other threads:[~2013-05-31 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 19:19 Jason Merrill
2013-05-31 11:13 ` Rainer Orth [this message]
2013-05-31 13:41   ` Jason Merrill
2013-06-07 12:43     ` Rainer Orth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yddzjvbpflm.fsf@lokon.CeBiTec.Uni-Bielefeld.DE \
    --to=ro@cebitec.uni-bielefeld.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).