[Issue 3046] Segfault with C++ static variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 2 17:39:07 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3046





--- Comment #2 from Shin Fujishiro <rsinfu at gmail.com>  2009-06-02 17:39:07 PDT ---
(In reply to comment #1)
> I can't reproduce this. It works for me on Windows. Is it Linux only, or is
> something missing from the test case?

It's Linux only. On Linux, C++ name mangling is done by the front end. The
front end assumes that extern(C++) is applied only to a function, and segfaults
when extern(C++) is applied to a static variable.

On Windows, C++ name mangling is done by the backend, which can deal with C++
variable name mangling.

-- 
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