* [committed] Backport r238728 testsuite g++.dg/init/elide5.C fix (PR testsuite/77034)
@ 2016-08-16 7:18 Jakub Jelinek
2016-08-28 22:05 ` Tom de Vries
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2016-08-16 7:18 UTC (permalink / raw)
To: gcc-patches
Hi!
I've backported following fix to 6 branch:
2016-08-16 Jakub Jelinek <jakub@redhat.com>
PR testsuite/77034
Backported from mainline
2016-07-25 Jason Merrill <jason@redhat.com>
* g++.dg/init/elide5.C (operator new): Use decltype(sizeof(1)) instead
of unsigned long.
--- gcc/testsuite/g++.dg/init/elide5.C (revision 238727)
+++ gcc/testsuite/g++.dg/init/elide5.C (revision 238728)
@@ -1,7 +1,7 @@
// PR c++/71913
// { dg-do link { target c++11 } }
-void* operator new(unsigned long, void* p) { return p; }
+void* operator new(decltype(sizeof(1)), void* p) { return p; }
struct IndirectReturn {
IndirectReturn() {}
@@ -24,4 +24,3 @@ int main()
{
bar(c);
}
-
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [committed] Backport r238728 testsuite g++.dg/init/elide5.C fix (PR testsuite/77034)
2016-08-16 7:18 [committed] Backport r238728 testsuite g++.dg/init/elide5.C fix (PR testsuite/77034) Jakub Jelinek
@ 2016-08-28 22:05 ` Tom de Vries
0 siblings, 0 replies; 2+ messages in thread
From: Tom de Vries @ 2016-08-28 22:05 UTC (permalink / raw)
To: Jakub Jelinek, gcc-patches
On 16/08/16 09:18, Jakub Jelinek wrote:
> Hi!
>
> I've backported following fix to 6 branch:
>
> 2016-08-16 Jakub Jelinek <jakub@redhat.com>
>
> PR testsuite/77034
> Backported from mainline
> 2016-07-25 Jason Merrill <jason@redhat.com>
>
> * g++.dg/init/elide5.C (operator new): Use decltype(sizeof(1)) instead
> of unsigned long.
Hi,
I ran into the same problem with the 5 branch, and backported the fix there.
Thanks,
- Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-28 22:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-16 7:18 [committed] Backport r238728 testsuite g++.dg/init/elide5.C fix (PR testsuite/77034) Jakub Jelinek
2016-08-28 22:05 ` Tom de Vries
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).