[LLVMbugs] [Bug 10392] New: _Pragma's argument gets incorrect macro expansion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 18 10:49:03 PDT 2011


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

           Summary: _Pragma's argument gets incorrect macro expansion
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu


Consider the following input:

#define push(foo) xxxxxxxxxxxxxxxxxxxxxxx
_Pragma("GCC visibility push(default)");

The current implementation of _Pragma expands the push() inside the string if
compiled directly and operates correctly when using e.g. -save-temps.

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