aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-11-17 00:18:13 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-11-17 00:18:13 +0100
commit8808260dfd1f7f25e7464bcf8006235677830672 (patch)
tree28a9768aa1d0052e8be8f98da6537a3a049118c1 /gcc
parent205d542ad55d8dee50acfe4f8ff6c2138dbad418 (diff)
downloadgcc-8808260dfd1f7f25e7464bcf8006235677830672.zip
gcc-8808260dfd1f7f25e7464bcf8006235677830672.tar.gz
gcc-8808260dfd1f7f25e7464bcf8006235677830672.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/lookup/pr87269.C6
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0434976..c879a8b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2018-11-16 Jakub Jelinek <jakub@redhat.com>
+
+ 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 <meissner@linux.ibm.com>
* 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 b0ceda2..0c87ee5 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);