This is the mail archive of the gcc@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: rfc: __builtin_syntax_error


On Mon, Jan 14, 2002 at 03:41:58PM -0800, Aldy Hernandez wrote:
> if this is what you mean (for the void function), then no.
> 
> culebra:/build/t3/gcc$ cat b.c  
> main() {
>         __builtin_choose_expr(1, 5,  (0 = 0));
> }
> culebra:/build/t3/gcc$ ./cc1 -quiet b.c
> b.c: In function `main':
> b.c:2: invalid lvalue in assignment

I wondered if this might happen.  Yer screwed.  There's no 
solution here witout the diag changes Joseph mentioned.

For now, just put an abort as the last entry.  That'll at
least catch the problem at runtime.


r~


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