lichray added a comment.

In https://reviews.llvm.org/D38216#923580, @rsmith wrote:

> That's almost right, but not all `extern` declarations are disallowed. (An 
> `extern` declaration is still a defining declaration if it has an 
> initializer.)


Good to know, thanks.

So gcc got this wrong?

https://wandbox.org/permlink/RVApvaca1ebUfInn


https://reviews.llvm.org/D38216



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D38216: [... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D382... Nicolas Lesser via Phabricator via cfe-commits
    • [PATCH] D382... Zhihao Yuan via Phabricator via cfe-commits
    • [PATCH] D382... Richard Smith - zygoloid via Phabricator via cfe-commits

Reply via email to