OSDN Git Service

* g++.dg/cpp0x/nullptr20.C: Use sprintf.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 May 2010 13:53:46 +0000 (13:53 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:02:17 +0000 (14:02 +0900)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159153 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr20.C

index acc40ba..4c42faa 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-07  Jason Merrill  <jason@redhat.com>
+
+       * trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
+       to avoid -Wc++-compat warning.
+
 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        PR 40989
index 09a98b3..2ddbe95 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-07  Jason Merrill  <jason@redhat.com>
+
+       * g++.dg/cpp0x/nullptr20.C: Use sprintf.
+
 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * gcc.dg/lto/20100423-2_0.c: Include <stdio.h>.
index b7457ca..a959b00 100644 (file)
@@ -11,7 +11,7 @@ int main()
   char buf1[64];
   char buf2[64];
 
-  std::snprintf(buf1, sizeof(buf1), "%p", (void*)0);
-  std::snprintf(buf2, sizeof(buf2), "%p", nullptr);
+  std::sprintf(buf1, "%p", (void*)0);
+  std::sprintf(buf2, "%p", nullptr);
   return std::strcmp(buf1, buf2) != 0;
 }