This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/46552 (C++0x ICE with pointer-to-member expression in template)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 22 Jan 2011 10:04:49 -0600
- Subject: Re: C++ PATCH for c++/46552 (C++0x ICE with pointer-to-member expression in template)
- References: <4D39D7A9.4030109@redhat.com>
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