This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 58647


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]