Skip to content

Commit

Permalink
Merge pull request #4013 from WalterBright/fix13514
Browse files Browse the repository at this point in the history
[REG] fix Issue 13514 - Druntime no longer builds with -g
  • Loading branch information
braddr committed Sep 25, 2014
2 parents 6cf07a7 + ea7ac0b commit 19ae02d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/toctype.c
Expand Up @@ -106,10 +106,13 @@ class ToCtypeVisitor : public Visitor
Type *tm = t->mutableOf();
if (tm->ctype)
{
Symbol *s = tm->ctype->Ttag;
t->ctype = type_alloc(TYstruct);
t->ctype->Ttag = (Classsym *)s; // structure tag name
t->ctype = type_alloc(tybasic(tm->ctype->Tty));
t->ctype->Tcount++;
if (t->ctype->Tty == TYstruct)
{
Symbol *s = tm->ctype->Ttag;
t->ctype->Ttag = (Classsym *)s; // structure tag name
}
// Add modifiers
switch (t->mod)
{
Expand Down
1 change: 1 addition & 0 deletions test/runnable/cppa.d
@@ -1,3 +1,4 @@
// PERMUTE_ARGS: -g
// EXTRA_CPP_SOURCES: cppb.cpp

import core.stdc.stdio;
Expand Down

0 comments on commit 19ae02d

Please sign in to comment.