| Thread overview | |||||
|---|---|---|---|---|---|
|
March 15, 2014 [Issue 12370] New: Regression: C++ name mangling broke | ||||
|---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=12370 Summary: Regression: C++ name mangling broke Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bugzilla@digitalmars.com --- Comment #0 from Walter Bright <bugzilla@digitalmars.com> 2014-03-14 23:48:21 PDT --- ---------- D ---------- extern (C++) void foo8(const char *); void main() { char c; foo8(&c); } ------------ C++ --------------- void foo8(const char *p) { } --------------------------------- This works in 2.065. In 2.066, C:\mars>dmc -c foo6b C:\mars>dmd foo6a foo6b.obj OPTLINK (R) for Win32 Release 8.00.14 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html foo6a.obj(foo6a) Error 42: Symbol Undefined ?foo8@@YAXQBD@Z (void cdecl foo8(char const *const )) --- errorlevel 1 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- | ||||
March 15, 2014 [Issue 12370] Regression: C++ name mangling broke | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | https://d.puremagic.com/issues/show_bug.cgi?id=12370 Vladimir Panteleev <thecybershadow@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow@gmail.com --- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> 2014-03-15 08:59:15 EET --- Introduced in https://github.com/D-Programming-Language/dmd/pull/3160 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- | |||
March 15, 2014 [Issue 12370] Regression: C++ name mangling broke | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | https://d.puremagic.com/issues/show_bug.cgi?id=12370 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |INVALID --- Comment #2 from yebblies <yebblies@gmail.com> 2014-03-15 18:04:32 EST --- The correct D declaration would be: extern (C++) void foo8(const(char)*); -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply