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
This commit is contained in:
Jakub Jelinek 2018-11-17 00:18:13 +01:00 committed by Jakub Jelinek
parent 205d542ad5
commit 8808260dfd
2 changed files with 11 additions and 1 deletions

View File

@ -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.

View File

@ -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);