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/13243] Detect more non constant expressions (regression in mainline)


On Mon, 8 Dec 2003 16:28:54 +0100, "Giovanni Bajo" <giovannibajo@libero.it> wrote:

>> and so your new test is appropriate.  The name should be fixed accordingly,
>> as should the error message in your patch and the comment in your testcase.
>
> The generic error message emitted by "cp_parser_non_constant_expression" uses
> the term "constant-expression". Anyway, I changed my error message.

Please fix the other error message, too.  And change all relevant names to
include the word "integral".  constant_expression_p should be
integral_constant_expression_p if that's what it actually means.

> !   S< (bool)(&static_cast<Y<T> *>(0)->x == 0) > s; // { dg-error "" "" }

I note that this is an invalid integral constant-expression also because of
the cast to pointer type.

Jason


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