Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Issue 5967 - Mangling of ArgClose for variadic function is swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
complexmath committed Aug 12, 2011
1 parent f5f6d1d commit 35c79fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions changelog.dd
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
$(VERSION 055, mmm dd, 2011, =================================================,

$(RUNTIMEBUGSFIXED
$(LI $(BUGZILLA 5967): Mangling of ArgClose for variadic function is swapped)
)
)
$(VERSION 054, mmm dd, 2011, =================================================,

$(WHATSNEW
Expand Down
8 changes: 4 additions & 4 deletions src/core/demangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -800,13 +800,13 @@ private struct Demangle
debug(info) printf( "tok (%c)\n", tok() );
switch( tok() )
{
case 'X': // ArgClose (variadic T t,...) style)
case 'X': // ArgClose (variadic T t...) style)
next();
put( ", ..." );
put( "..." );
return;
case 'Y': // ArgClose (variadic T t...) style)
case 'Y': // ArgClose (variadic T t,...) style)
next();
put( "..." );
put( ", ..." );
return;
case 'Z': // ArgClose (not variadic)
next();
Expand Down

1 comment on commit 35c79fe

@dnadlinger
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This broke the test suite, see pull request #53.

Please sign in to comment.