On Aug 14, 2009, at 3:48 PM, Ted Kremenek wrote:

> As for 'noreturn', Clang's handling of it is incorrect.  Consider:
>
> $ cat t.c
> __attribute((noreturn)) void *(*fptr)();
> void *(*gptr)();
>
> void bar() {
>   gptr = fptr;
> }
>
> $ gcc -fsyntax-only t.c
> t.c: In function ‘bar’:
> t.c:5: warning: assignment makes qualified function pointer from  
> unqualified
>
> $ clang -fsyntax-only t.c
> (nothing)
>

The assignment actually is 'fptr = gptr'.  I pasted the wrong code.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to