public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kyrill Tkachov <kyrylo.tkachov@arm.com>
To: Marek Polacek <polacek@redhat.com>,
	 GCC Patches <gcc-patches@gcc.gnu.org>,
	Jason Merrill <jason@redhat.com>
Subject: Re: [PATCH] Add testcase for c++/68348
Date: Wed, 09 Dec 2015 15:39:00 -0000	[thread overview]
Message-ID: <56684B46.1040002@arm.com> (raw)
In-Reply-To: <20151209153825.GS3175@redhat.com>

On 09/12/15 15:38, Marek Polacek wrote:
> This adds a testcase for the already fixed PR68348.
>
> Tested on x86_64-linux, ok for trunk?
>
> 2015-12-09  Marek Polacek  <polacek@redhat.com>
>
> 	PR c++/68348
> 	* g++.dg/cpp0x/pr68348.C: New test.
>
> diff --git gcc/testsuite/g++.dg/cpp0x/pr68348.C gcc/testsuite/g++.dg/cpp0x/pr68348.C
> index e69de29..9033bba 100644
> --- gcc/testsuite/g++.dg/cpp0x/pr68348.C
> +++ gcc/testsuite/g++.dg/cpp0x/pr68348.C
> @@ -0,0 +1,18 @@
> +// PR c++/68348
> +// { dg-do compile { target c++11 } }
> +
> +struct C {
> +  constexpr C() : w(), x(), y() {}
> +  constexpr double fn() const noexcept;
> +  double w;
> +  double x;
> +  double y;
> +};
> +
> +constexpr double C::fn() const noexcept { return w; }
> +C foo()
> +{
> +  C c;
> +  c.fn ();
> +  return c;
> +}
>
> 	Marek
>

Same as:
https://gcc.gnu.org/ml/gcc-patches/2015-12/msg01001.html
:)

Kyrill

  reply	other threads:[~2015-12-09 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-09 15:38 Marek Polacek
2015-12-09 15:39 ` Kyrill Tkachov [this message]
2015-12-09 15:43   ` Marek Polacek
2015-12-10 15:17     ` Jason Merrill

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=56684B46.1040002@arm.com \
    --to=kyrylo.tkachov@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=polacek@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).