[LLVMbugs] [Bug 4345] New: __func__ is a predefined identifier, not a keyword

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jun 7 22:50:03 PDT 2009


           Summary: __func__ is a predefined identifier, not a keyword
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu

I think that this should be legal:
void foo() { { int __func__ = 4; }}

__func__ is not a keyword according to C99, it is a predefined identifier.  See
also C99

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