Commit edde16fc by Marek Polacek Committed by Marek Polacek

re PR c++/87410 (internal compiler error: in fold_convert_loc, at fold-const.c:2530)

	PR c++/87410
	* g++.dg/cpp1y/pr87410.C: New test.

From-SVN: r272230
parent 12e0d27a
2019-06-12 Marek Polacek <polacek@redhat.com>
PR c++/87410
* g++.dg/cpp1y/pr87410.C: New test.
2019-06-12 Marek Polacek <polacek@redhat.com>
PR c++/66999 - 'this' captured by reference.
* g++.dg/cpp0x/lambda/lambda-this21.C: New test.
......
// PR c++/87410
// { dg-do compile { target c++14 } }
template <long a> using b = const char[a];
template <typename, int c, int e, typename f>
constexpr auto g(b<c> &, b<e> &, f) {}
template <typename d, int a> auto h(b<a> &) {
auto i = j(static_cast<d **>(nullptr));
return **i;
}
class k {
using l = k;
const int &m() const;
friend constexpr auto j(l **n) -> decltype(n) {
g<int>("", "", static_cast<const int &(k::*)() const>(&k::m));
return n;
}
};
k o = h<k, 1>("");
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