public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] fix g++.dg/lookup/crash3.C's (non) usage of __SIZE_TYPE__
@ 2004-06-19 19:11 Andrew Pinski
  2004-06-19 19:38 ` Andrew Pinski
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Pinski @ 2004-06-19 19:11 UTC (permalink / raw)
  To: gcc-patches

When g++.dg/lookup/crash3.C was comitted, Giovanni had forgot that size_t
is different between targets so this patch fixes that assumention and
uses __SIZE_TYPE__ instead.

Thanks,
Andrew Pinski

2004-06-19  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/lookup/crash3.C: Use __SIZE_TYPE__
        instead of setting the type of size_t by
        hand.


Index: testsuite/g++.dg/lookup/crash3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/lookup/crash3.C,v
retrieving revision 1.1
diff -u -p -r1.1 crash3.C
--- testsuite/g++.dg/lookup/crash3.C    15 Jun 2004 01:46:21 -0000      1.1
+++ testsuite/g++.dg/lookup/crash3.C    19 Jun 2004 16:32:07 -0000
@@ -2,7 +2,7 @@
 // Contributed by Wolfgang Wieser <wwieser at gmx dot de>
 // PR c++/15967: ICE with ambiguous operator new
 
-typedef unsigned int size_t; 
+typedef __SIZE_TYPE__ size_t; 
 
 struct A { void *operator new(size_t s){} };  // { dg-error "operator new" }
 struct B { void *operator new(size_t s){} };  // { dg-error "operator new" }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [committed] fix g++.dg/lookup/crash3.C's (non) usage of __SIZE_TYPE__
  2004-06-19 19:11 [committed] fix g++.dg/lookup/crash3.C's (non) usage of __SIZE_TYPE__ Andrew Pinski
@ 2004-06-19 19:38 ` Andrew Pinski
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Pinski @ 2004-06-19 19:38 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: gcc-patches

> 
> When g++.dg/lookup/crash3.C was comitted, Giovanni had forgot that size_t
> is different between targets so this patch fixes that assumention and
> uses __SIZE_TYPE__ instead.
> 
> Thanks,
> Andrew Pinski
> 
> 2004-06-19  Andrew Pinski  <pinskia@physics.uc.edu>
> 
>         * g++.dg/lookup/crash3.C: Use __SIZE_TYPE__
>         instead of setting the type of size_t by
>         hand.

I applied this to the 3.4 branch after checkouting out the branch.

Thanks,
Andrew Pinski

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-19 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-19 19:11 [committed] fix g++.dg/lookup/crash3.C's (non) usage of __SIZE_TYPE__ Andrew Pinski
2004-06-19 19:38 ` Andrew Pinski

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).