C++ PATCH for c++/46552 (C++0x ICE with pointer-to-member expression in template)

Gabriel Dos Reis gdr@integrable-solutions.net
Sat Jan 22 16:24:00 GMT 2011


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



More information about the Gcc-patches mailing list