[cfe-dev] 'pragma weak' redeclaration as extern function

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Apr 7 07:05:17 PDT 2013


On 6 April 2013 15:19, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> Hello,
>
> GCC 4.7.2 compiles the following program:
>
> extern int PFoo(int);
> #pragma weak PFoo = Foo
> int Foo(int a) { return a; }
> int main() {
>   return PFoo(1);
> }
>
> while Clang emits an error:

Looks like it, yes. Would you mind reporting it in llvm.org/bugs?

Thanks,
Rafael



More information about the cfe-dev mailing list