Judith, Thanks for the workaround. However,
>>#define AddPrefix(x) ( prefix##x )
>>...
I did a verification with a legacy C++ compiler Borland C++ version 5.5.1:
..\Test>bcc32.exe Main.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Main.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Main.cpp - 0 error(s), 0 warning(s)
and it did Not have Any compilation errors with the test case provided. So, I consider it as a bug with Intel C++ compiler ( Also reproduced with a version 12.1.7.371 Build 20120928 ).
Judith, Thanks for the workaround. However,
>>#define AddPrefix(x) ( prefix##x )
>>...
I did a verification with a legacy C++ compiler Borland C++ version 5.5.1:
..\Test>bcc32.exe Main.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Main.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Main.cpp - 0 error(s), 0 warning(s)
and it did Not have Any compilation errors with the test case provided. So, I consider it as a bug with Intel C++ compiler ( Also reproduced with a version 12.1.7.371 Build 20120928 ).