[LLVMbugs] [Bug 11822] New: Clang doesn't check that "#pragma GCC visibility push" and "pragma GCC visibility pop" are matched

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 20 23:04:43 PST 2012


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

             Bug #: 11822
           Summary: Clang doesn't check that "#pragma GCC visibility push"
                    and "pragma GCC visibility pop" are matched
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


gcc rejects a file with just

#pragma GCC visibility pop

but we accept it. GCC accepts

namespace foo __attribute__((visibility("default"))) {
#pragma GCC visibility push(default)
}
#pragma GCC visibility pop

but it is probably safe to reject.

-- 
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