Commit 8b1eb9ae by Jakub Jelinek

re PR c++/34829 (placement new with primitive Java types rejected)

	PR c++/34829
	* g++.dg/ext/pr34829.C (operator new): Use size_t instead of
	unsigned int for the first argument.

From-SVN: r131756
parent b2a7def5
2008-01-23 Jakub Jelinek <jakub@redhat.com>
PR c++/34829
* g++.dg/ext/pr34829.C (operator new): Use size_t instead of
unsigned int for the first argument.
2008-01-22 Jakub Jelinek <jakub@redhat.com> 2008-01-22 Jakub Jelinek <jakub@redhat.com>
PR c++/33984 PR c++/33984
...@@ -18,7 +24,7 @@ ...@@ -18,7 +24,7 @@
2008-01-22 Tom Tromey <tromey@redhat.com> 2008-01-22 Tom Tromey <tromey@redhat.com>
PR c++/34859: PR c++/34859
* gcc.dg/cpp/pr34859.c: New file. * gcc.dg/cpp/pr34859.c: New file.
2008-01-22 Paul Thomas <pault@gcc.gnu.org> 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
...@@ -41,7 +47,7 @@ ...@@ -41,7 +47,7 @@
2008-01-22 Tom Tromey <tromey@redhat.com> 2008-01-22 Tom Tromey <tromey@redhat.com>
PR c++/34829: PR c++/34829
* g++.dg/ext/pr34829.C: New file. * g++.dg/ext/pr34829.C: New file.
2008-01-22 Jakub Jelinek <jakub@redhat.com> 2008-01-22 Jakub Jelinek <jakub@redhat.com>
...@@ -9,7 +9,9 @@ extern "Java" ...@@ -9,7 +9,9 @@ extern "Java"
typedef __java_byte jbyte; typedef __java_byte jbyte;
} }
void *operator new (unsigned int s, void *m) typedef __SIZE_TYPE__ size_t;
void *operator new (size_t, void *m)
{ {
return m; return m;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment