Changeset 647

Show
Ignore:
Timestamp:
08/28/10 18:09:17 (1 year ago)
Author:
walter
Message:

Issue 3046 - Segfault with C++ static variable (Linux only)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cppmangle.c

    r594 r647  
    110110 
    111111        FuncDeclaration *fd = s->isFuncDeclaration(); 
     112        if (!fd) 
     113        { 
     114            s->error("C++ static variables not supported"); 
     115        } 
     116        else 
    112117        if (fd->isConst()) 
    113118            buf->writeByte('K');