Commit dc59e50a by Jakub Jelinek Committed by Jakub Jelinek

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
parent 7e8400e2
2017-01-09 Jakub Jelinek <jakub@redhat.com> 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 PR tree-optimization/78938
* gcc.dg/vect/pr78938.c: New test. * gcc.dg/vect/pr78938.c: New test.
......
// PR c++/79848 // PR c++/78948
// { dg-options -std=c++1z } // { dg-options -std=c++1z }
template <int T> template <int T>
...@@ -9,8 +9,8 @@ void sizeof_mismatch() ...@@ -9,8 +9,8 @@ void sizeof_mismatch()
int main() int main()
{ {
if constexpr(sizeof(long long) == sizeof(char*)) if constexpr(sizeof(int*) == sizeof(char*))
; ;
else else
sizeof_mismatch<sizeof(long long)>(); sizeof_mismatch<sizeof(int*)>();
} }
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