This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] C++0x static assertions
Gabriel Dos Reis wrote:
> Mark Mitchell <email@example.com> writes:
> | and they don't have many of the normal declaration properties. For
> | example, they don't have names -- which is perhaps *the* fundamental
> | property of a declaration. So, I would create a tcc_exceptional node
> | for these.
> Indeed. I pointed out that irregularity four years ago, but the
> committee didn't not think it was disturbing enough, just like
> asm-declarations :-(
> Would an expression node be a better choice?
You can't use them as expressions, as I understand it. For example:
is invalid. So, I think it's best to make them exceptional.
(650) 331-3385 x713