[cfe-dev] __auto_type doesn't warn when a pointer is used as a declarator

Puneetha K via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 9 02:07:32 PDT 2017


Hi,

__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.

Please confirm if clang behavior is valid.

Thanks in advance,
Best regards,
Puneetha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170609/f6d92408/attachment.html>


More information about the cfe-dev mailing list