This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 58647
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jason Merrill <jason at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 Nov 2013 17:43:17 +0100
- Subject: Re: [C++ Patch] PR 58647
- Authentication-results: sourceware.org; auth=none
- References: <5263FFD2 dot 1040709 at oracle dot com> <52912DAE dot 6020304 at redhat dot com> <52947AB3 dot 5000300 at oracle dot com> <5294BE80 dot 5080400 at redhat dot com>
Hi,
On 11/26/2013 04:30 PM, Jason Merrill wrote:
A BASELINK isn't useful as a constant, either; I was thinking of the
FUNCTION_DECL itself. Perhaps
gcc_checking_assert (!really_overloaded_fn
return get_first_fn
We have got a bunch of testcases, for example constexpr-ex4.C - attached
for your convenience - which trigger the assert !really_overloaded_fn
(t) ... What do you suggest?
Thanks,
Paolo.
///////
// { dg-options "-std=c++11" }
struct A
{
constexpr A(int) { }
constexpr operator int() { return 1; };
};
template <class T>
struct B
{
static constexpr A a = A(1);
int ar[a];
};
B<int> b;