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 for c++/46552 (C++0x ICE with pointer-to-member expression in template)


On Fri, Jan 21, 2011 at 12:59 PM, Jason Merrill <jason@redhat.com> wrote:
> Having to deal with general constant-expressions as null pointer constants
> has been a hassle, as it means that we have to try to evaluate something for
> a constant value in a lot more situations. ?Here we were trying to evaluate
> S::x before wrapping it in NON_DEPENDENT_EXPR. ?Fixed simply by handing
> OFFSET_REF in cxx_eval_constant_expression.

As you probably know, I believe C++0x should ban the arbitrary
constant expression
evaluating to zero as a null constant expression.  0 or nullptr should
be enough for
everybody :-)

-- Gaby


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