[patch] Error if an extern "C" declaration matches a previous hidden extern "C" declaration
Richard Smith
richard at metafoo.co.uk
Mon Mar 11 23:10:52 PDT 2013
LGTM. It looks like the previous code was trying to work around us
classifying internal-linkage entities as having C language linkage :)
On Mon, Mar 11, 2013 at 7:13 PM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> Without this patch we produce an error for
>
>
> extern "C" {
> void f() {
> extern int b;
> }
> }
>
> extern "C" {
> extern float b;
> }
>
>
> but not for
>
> extern "C" {
> void f() {
> extern int b;
> }
> }
>
> extern "C" {
> float b;
> }
>
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130311/68ef57c0/attachment.html>
More information about the cfe-commits
mailing list