From: Jakub Jelinek Date: Mon, 9 Jan 2017 16:24:19 +0000 (+0100) Subject: re PR c++/78948 ([C++17] constexpr if instantiating too eagerly) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc59e50a5e78cdc4c98b9feee0d0bf300eb3f5da;p=gcc.git re PR c++/78948 ([C++17] constexpr if instantiating too eagerly) PR c++/78948 * g++.dg/cpp1z/constexpr-if10.C: Fix PR number in comment. (main): Use int* instead of long long. From-SVN: r244228 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 854121ec921..f89841ad5ac 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2017-01-09 Jakub Jelinek + 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. diff --git a/gcc/testsuite/g++.dg/cpp1z/constexpr-if10.C b/gcc/testsuite/g++.dg/cpp1z/constexpr-if10.C index 64de53f0603..1c83b592ad0 100644 --- a/gcc/testsuite/g++.dg/cpp1z/constexpr-if10.C +++ b/gcc/testsuite/g++.dg/cpp1z/constexpr-if10.C @@ -1,4 +1,4 @@ -// PR c++/79848 +// PR c++/78948 // { dg-options -std=c++1z } template @@ -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_mismatch(); }