[Issue 3046] Segfault with C++ static variable (Linux only)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 11 05:57:17 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3046
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2010-08-11 05:57:15 PDT ---
Patch: cpp_mangle.c, cpp_mangle_name(), line 112.
FuncDeclaration *fd = s->isFuncDeclaration();
+ if (!fd)
+ {
+ s->error("cannot be declared as extern(C++)");
+ return;
+ }
if (fd->isConst())
buf->writeByte('K');
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list