Home Dashboard Directory Help

comma missing when using __VA_ARGS__ by goldenegg


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 278752
Opened: 5/28/2007 4:45:52 AM
Access Restriction: Public
User(s) can reproduce this bug


I reported this bug some months ago, you said that this bug had been fixed.
But it is NOT fixed in VS2005 SP1!!

when using __VA_ARGS__, a comma in normal code may be removed by the compiler(or exactly, the preprocessor).

see the steps to reproduce this issue.
Sign in to post a comment.
Posted by Microsoft on 5/31/2007 at 9:30 AM
This is an automated message. The issue reported in this bug has been fixed by the Visual C++ development team and will be included in the next release of Visual C++.
Posted by Microsoft on 5/31/2007 at 9:15 AM
Hi: this issue was originally reported too late for inclusion in Visual C++ 2005 SP1 but it has been fixed and the fix will show up in the upcoming "Orcas" release of Visual C++.

Jonathan Caves
Visual C++ Compiler Team.
Posted by Microsoft on 5/29/2007 at 2:50 AM
Thanks for your feedback. We have reproduced this bug on WinXP pro SP2 and VSTS2005 SP1, but have not reproduced this bug on Win2003 SP2 and OrcasBeta1VSTS. We are sending this bug to the appropriate group within the Visual Studio Product Team for triage and resolution. Thank you, Visual Studio Product Team.
Posted by Microsoft on 5/28/2007 at 4:58 PM
Thank you for your feedback. We are currently investigating. If this issue is urgent, please call support directly (see http://support.microsoft.com). Thank you, Visual Studio Product Team.
Sign in to post a workaround.
Posted by Martin Ba. _ on 8/18/2011 at 11:45 PM
If the macro has a comma that is incorrectly removed by the preprocessor, and it is possible to insert another statement btw. the comma and the __VA_ARGS__, the a dummy statement of the form -- "dum","my"; -- can be inserted. This should compile to a noop with or without comma. (Also see: http://stackoverflow.com/q/7103824/321013)