[llvm-dev] __auto_type doesn't warn when a pointer is used as a	declarator
    Tim Northover via llvm-dev 
    llvm-dev at lists.llvm.org
       
    Fri Jun  9 07:13:58 PDT 2017
    
    
  
On 9 June 2017 at 02:07, Puneetha K via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> __auto_type *p = (int *) 0;
>
> This compiles with no problem, but GCC gives an error that we can only use
> plain identifier as a declarator.
At the very least Clang's behaviour is consistent with "auto" in C++,
which I think is a good thing.
Tim.
    
    
More information about the llvm-dev
mailing list