http://llvm.org/bugs/show_bug.cgi?id=11583
Bug #: 11583
Summary: Macro Redefinition in MSVC compatibility mode
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
In code containing function-like macro overloading, for example:
#define RETERROR(x) return x
#define RETERROR(x,y) return x + 1
int test()
{
RETERROR(2);
}
Visual C++ compiler is able to processes this code, generating the C4003
warning (the missing argument being replaced by an empty string), while clang
exits with an error "too few arguments provided to function-like macro
invocation", being unable to process it and potentially making some Visual C++
projects uncompilable.
--
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