Skip to content

Commit

Permalink
fix Issue 13514 - Druntime no longer builds with -g
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Sep 21, 2014
1 parent 5606406 commit ea7ac0b
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 ea7ac0b

Please sign in to comment.