[LLVMbugs] [Bug 13658] New: Bad diagnostic for #pragma visibility collision with attribute.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 22 02:21:15 PDT 2012


             Bug #: 13658
           Summary: Bad diagnostic for #pragma visibility collision with
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


#pragma GCC visibility push(hidden)
class basic_string;
class __attribute__((__visibility__("default"))) basic_string;

clang emits:

t.cpp:4:22: error: visibility does not match previous declaration
class __attribute__((__visibility__("default"))) basic_string;
t.cpp:1:13: note: previous attribute is here
#pragma GCC visibility push(hidden)

#pragma is not an attribute and it would be really helpful if we had a note
pointing at the forward declaration.

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.

More information about the llvm-bugs mailing list