From 8808260dfd1f7f25e7464bcf8006235677830672 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 17 Nov 2018 00:18:13 +0100 Subject: [PATCH] re PR c++/87269 (ICE in tsubst_copy, at cp/pt.c:15475 starting from r261802) PR c++/87269 * g++.dg/lookup/pr87269.C (std::size_t): New typedef. (operator"" _a) Change unsigned long type to std::size_t. From-SVN: r266225 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/lookup/pr87269.C | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 04349764c3e..c879a8b9523 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-11-16 Jakub Jelinek + + PR c++/87269 + * g++.dg/lookup/pr87269.C (std::size_t): New typedef. + (operator"" _a) Change unsigned long type to std::size_t. + 2018-11-16 Michael Meissner * gcc.target/powerpc/fusion3.c: Delete. diff --git a/gcc/testsuite/g++.dg/lookup/pr87269.C b/gcc/testsuite/g++.dg/lookup/pr87269.C index b0ceda23878..0c87ee5aef5 100644 --- a/gcc/testsuite/g++.dg/lookup/pr87269.C +++ b/gcc/testsuite/g++.dg/lookup/pr87269.C @@ -1,8 +1,12 @@ // { dg-do compile { target c++11 } } // PR c++/87269 ICE failing to keep a lookup +namespace std { + typedef decltype (sizeof (0)) size_t; +} + namespace { - void operator"" _a (const char *, unsigned long) {} + void operator"" _a (const char *, std::size_t) {} } void operator"" _a (unsigned long long); -- 2.30.2