re PR c++/78948 ([C++17] constexpr if instantiating too eagerly)
authorJakub Jelinek <jakub@redhat.com>
Mon, 9 Jan 2017 16:24:19 +0000 (17:24 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 9 Jan 2017 16:24:19 +0000 (17:24 +0100)
PR c++/78948
* g++.dg/cpp1z/constexpr-if10.C: Fix PR number in comment.
(main): Use int* instead of long long.

From-SVN: r244228

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/constexpr-if10.C

index 854121ec921fb969a8534e7555b6735a945096be..f89841ad5ace4547063f6ac16bc596f943e08eb4 100644 (file)
@@ -1,5 +1,9 @@
 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
 
+       PR c++/78948
+       * g++.dg/cpp1z/constexpr-if10.C: Fix PR number in comment.
+       (main): Use int* instead of long long.
+
        PR tree-optimization/78938
        * gcc.dg/vect/pr78938.c: New test.
 
index 64de53f06035ce3562dc09261d8ad0d1d8fe6a15..1c83b592ad044cb97e0df44d039084c05c1bf333 100644 (file)
@@ -1,4 +1,4 @@
-// PR c++/79848
+// PR c++/78948
 // { dg-options -std=c++1z }
 
 template <int T>
@@ -9,8 +9,8 @@ void sizeof_mismatch()
 
 int main()
 {
-  if constexpr(sizeof(long long) == sizeof(char*))
+  if constexpr(sizeof(int*) == sizeof(char*))
     ;
   else
-    sizeof_mismatch<sizeof(long long)>();
+    sizeof_mismatch<sizeof(int*)>();
 }