http://llvm.org/bugs/show_bug.cgi?id=14974

             Bug #: 14974
           Summary: clang is too aggressive in applying #pragma weak
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Given 

#pragma weak foo
struct S {  void foo(); };
void S::foo() {}
#pragma weak zed
namespace bar {  void zed() {} }
#pragma weak bah
void bah() {}
#pragma weak baz
extern "C" void baz() {}

Clang produces a weak symbol in all cases. Gcc produces it only for baz, so it
looks like we can restrict the pragma just to extern C decls.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to